+
@@ -187,8 +188,7 @@
}
}
-onMounted(() => {
- entriesStore.requestFullEntry({entryId: properties.entryId});
-});
-
+ onMounted(() => {
+ entriesStore.requestFullEntry({entryId: properties.entryId});
+ });
diff --git a/site/src/inputs/Marker.vue b/site/src/inputs/Marker.vue
index 1ba797cf..9242560a 100644
--- a/site/src/inputs/Marker.vue
+++ b/site/src/inputs/Marker.vue
@@ -3,21 +3,17 @@
+ @click.prevent="unmark()">
-
+
+ @click.prevent="mark()">
-
+
@@ -40,14 +36,14 @@
return entriesStore.entries[properties.entryId].hasMarker(properties.marker);
});
- async function mark() {
+ async function mark() {
await entriesStore.setMarker({
entryId: properties.entryId,
marker: properties.marker
});
}
-async function unmark() {
+ async function unmark() {
await entriesStore.removeMarker({
entryId: properties.entryId,
marker: properties.marker
@@ -55,5 +51,4 @@ async function unmark() {
}
-
+
diff --git a/site/src/stores/entries.ts b/site/src/stores/entries.ts
index ff02ffba..873c4de1 100644
--- a/site/src/stores/entries.ts
+++ b/site/src/stores/entries.ts
@@ -85,7 +85,6 @@ export const useEntriesStore = defineStore("entriesStore", () => {
requestedEntriesTimer.start();
async function setMarker({entryId, marker}: {entryId: t.EntryId; marker: e.Marker}) {
-
if (marker === e.Marker.Read) {
readHistory.value.push(entryId);
}
@@ -101,11 +100,10 @@ export const useEntriesStore = defineStore("entriesStore", () => {
}
async function removeMarker({entryId, marker}: {entryId: t.EntryId; marker: e.Marker}) {
-
if (marker === e.Marker.Read) {
_.pull(readHistory.value, entryId);
- hideEntry({entryId: entryId});
+ hideEntry({entryId: entryId});
}
// This code must be before the actual API request, see comment above
diff --git a/site/src/views/NewsView.vue b/site/src/views/NewsView.vue
index 01403db2..51003995 100644
--- a/site/src/views/NewsView.vue
+++ b/site/src/views/NewsView.vue
@@ -30,7 +30,6 @@
@click="entriesStore.undoMarkRead()">
↶
-