Skip to content

Commit 1af153c

Browse files
committed
Simplifies history component bindings
Removes unused 'histories' and 'historiesLoading' bindings from history components.
1 parent 714686d commit 1af153c

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

client/src/components/History/Index.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const userStore = useUserStore();
1414
const historyStore = useHistoryStore();
1515
1616
const { currentUser } = storeToRefs(userStore);
17-
const { currentHistory, histories, historiesLoading } = storeToRefs(historyStore);
17+
const { currentHistory } = storeToRefs(historyStore);
1818
1919
const listOffset = ref<number | undefined>(0);
2020
const breadcrumbs = ref<CollectionEntry[]>([]);
@@ -37,10 +37,7 @@ function onViewCollection(collection: CollectionEntry, currentOffset?: number) {
3737
:filterable="true"
3838
@view-collection="onViewCollection">
3939
<template v-slot:navigation>
40-
<HistoryNavigation
41-
:history="currentHistory"
42-
:histories="histories"
43-
:histories-loading="historiesLoading" />
40+
<HistoryNavigation :history="currentHistory" />
4441
</template>
4542
</HistoryPanel>
4643

client/src/components/History/Multiple/MultipleViewItem.vue

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { computed, ref } from "vue";
99
import { useExtendedHistory } from "@/composables/detailedHistory";
1010
import { useHistoryStore } from "@/stores/historyStore";
1111
12-
import HistoryNavigation from "../CurrentHistory/HistoryNavigation.vue";
1312
import CollectionPanel from "@/components/History/CurrentCollection/CollectionPanel.vue";
13+
import HistoryNavigation from "@/components/History/CurrentHistory/HistoryNavigation.vue";
1414
import HistoryPanel from "@/components/History/CurrentHistory/HistoryPanel.vue";
1515
import LoadingSpan from "@/components/LoadingSpan.vue";
1616
@@ -26,7 +26,7 @@ interface Props {
2626
const props = defineProps<Props>();
2727
2828
const historyStore = useHistoryStore();
29-
const { currentHistoryId, histories, historiesLoading, pinnedHistories } = storeToRefs(historyStore);
29+
const { currentHistoryId, pinnedHistories } = storeToRefs(historyStore);
3030
3131
const { history } = useExtendedHistory(props.source.id);
3232
@@ -71,11 +71,8 @@ function onViewCollection(collection: object) {
7171
Hide
7272
</BButton>
7373
</div>
74-
<HistoryNavigation
75-
:history="history"
76-
:histories="histories"
77-
:histories-loading="historiesLoading"
78-
minimal />
74+
75+
<HistoryNavigation :history="history" minimal />
7976
</div>
8077

8178
<hr class="w-100 m-1" />

0 commit comments

Comments
 (0)