Skip to content

Commit

Permalink
Make repository id optional due to vue-router bug
Browse files Browse the repository at this point in the history
  • Loading branch information
underscope committed Mar 11, 2024
1 parent 87ae29d commit 654546f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 5 deletions.
Expand Up @@ -11,7 +11,11 @@
</VCol>
</VRow>
<CloneModal v-if="showCloneModal" @close="showCloneModal = false" />
<ExportDialog v-if="showExportModal" @close="showExportModal = false" />
<ExportDialog
v-if="showExportModal"
:repository="currentRepositoryStore.repository as Repository"
@close="showExportModal = false"
/>
<ProgressDialog
:show="publishUtils.isPublishing.value"
:status="publishPercentage"
Expand Down Expand Up @@ -42,7 +46,6 @@ const currentRepositoryStore = useCurrentRepository();
const publishUtils = usePublishActivity();
const confirmationDialog = useConfirmationDialog();
const isPublishing = ref(false);
const showCloneModal = ref(false);
const showExportModal = ref(false);
const publishPercentage = computed(
Expand All @@ -63,12 +66,13 @@ const exportRepository = () => {
const showDeleteConfirmation = () => {
const repository = currentRepositoryStore.repository as Repository;
const { id, name } = repository;
confirmationDialog({
title: 'Delete repository?',
message: `Are you sure you want to delete repository ${repository.name}?`,
message: `Are you sure you want to delete repository ${name}?`,
action: async () => {
await repositoryStore.remove(repository.id);
navigateTo({ name: 'catalog' });
await repositoryStore.remove(id);
navigateTo('/');
},
});
};
Expand Down

0 comments on commit 654546f

Please sign in to comment.