diff --git a/client/src/components/History/SwitchToHistoryLink.vue b/client/src/components/History/SwitchToHistoryLink.vue index 58dca75e389e..a8e23b33fa4c 100644 --- a/client/src/components/History/SwitchToHistoryLink.vue +++ b/client/src/components/History/SwitchToHistoryLink.vue @@ -47,7 +47,18 @@ const actionText = computed(() => { return "View in new tab"; }); +const linkTitle = computed(() => { + if (historyStore.currentHistoryId === props.historyId) { + return "This is your current history"; + } else { + return `${actionText.value}
${history.value?.name}`; + } +}); + async function onClick(history: HistorySummary) { + if (historyStore.currentHistoryId === history.id) { + return; + } if (canSwitch.value) { if (props.filters) { historyStore.applyFilters(history.id, props.filters); @@ -75,9 +86,10 @@ function viewHistoryInNewTab(history: HistorySummary) {