Loading client/src/components/History/HistoryView.vue +5 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ </div> <b-alert :show="copySuccess"> History imported and is now your active history. <b-link to="/histories/list">View here</b-link>. History imported and is now your active history. <b-link :to="importedHistoryLink">View here</b-link>. </b-alert> <CollectionPanel Loading @@ -49,6 +49,7 @@ <script> import { mapActions, mapState } from "pinia"; import { isAnonymousUser } from "@/api"; import { useHistoryStore } from "@/stores/historyStore"; import { useUserStore } from "@/stores/userStore"; Loading Loading @@ -123,6 +124,9 @@ export default { canImportHistory() { return !this.userOwnsHistory && !this.history.purged; }, importedHistoryLink() { return isAnonymousUser(this.currentUser) ? "/" : "/histories/list"; }, }, created() { this.loadHistoryById(this.id); Loading Loading
client/src/components/History/HistoryView.vue +5 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ </div> <b-alert :show="copySuccess"> History imported and is now your active history. <b-link to="/histories/list">View here</b-link>. History imported and is now your active history. <b-link :to="importedHistoryLink">View here</b-link>. </b-alert> <CollectionPanel Loading @@ -49,6 +49,7 @@ <script> import { mapActions, mapState } from "pinia"; import { isAnonymousUser } from "@/api"; import { useHistoryStore } from "@/stores/historyStore"; import { useUserStore } from "@/stores/userStore"; Loading Loading @@ -123,6 +124,9 @@ export default { canImportHistory() { return !this.userOwnsHistory && !this.history.purged; }, importedHistoryLink() { return isAnonymousUser(this.currentUser) ? "/" : "/histories/list"; }, }, created() { this.loadHistoryById(this.id); Loading