Skip to content

Commit e0b20a6

Browse files
Only show breadcrumb when on history permissions route (not in sharing view)
Without this, we had two breadcrumbs in the permissions tab in the history sharing view
1 parent 151aae3 commit e0b20a6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

client/src/components/History/HistoryDatasetPermissions.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script lang="ts" setup>
22
import { computed, ref } from "vue";
3+
import { useRoute } from "vue-router/composables";
34
45
import { initRefs, updateRefs, useCallbacks } from "@/composables/datasetPermissions";
56
import { useHistoryBreadCrumbsToForProps } from "@/composables/historyBreadcrumbs";
@@ -15,6 +16,8 @@ interface HistoryDatasetPermissionsProps {
1516
}
1617
const props = defineProps<HistoryDatasetPermissionsProps>();
1718
19+
const route = useRoute();
20+
1821
const loading = ref(true);
1922
2023
const {
@@ -67,7 +70,7 @@ const { onSuccess, onError } = useCallbacks(init);
6770

6871
<template>
6972
<div>
70-
<BreadcrumbHeading :items="breadcrumbItems" />
73+
<BreadcrumbHeading v-if="route.path === '/histories/permissions'" :items="breadcrumbItems" />
7174

7275
<DatasetPermissionsForm
7376
:loading="loading"

0 commit comments

Comments
 (0)