From e67fc7fb7e1678b1b691fee77d3237b222ad50c6 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 13 Sep 2022 22:04:24 +0200 Subject: [PATCH] fix: use proper computed for available views list --- src/components/sharing/linkSharing.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/components/sharing/linkSharing.vue b/src/components/sharing/linkSharing.vue index 5fede63a..47ef4968 100644 --- a/src/components/sharing/linkSharing.vue +++ b/src/components/sharing/linkSharing.vue @@ -146,10 +146,10 @@
@@ -228,7 +228,12 @@ type SelectedViewMapper = Record const selectedView = ref({}) -const availableViews = computed(() => Object.values(LIST_VIEWS)) +const availableViews = computed>(() => ({ + list: t('list.list.title'), + gantt: t('list.gantt.title'), + table: t('list.table.title'), + kanban: t('list.kanban.title'), +})) const copy = useCopyToClipboard() watch(