From 26d02d5593283c3ad2fb961348ba2f412cc9eaa8 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 8 Sep 2022 16:29:29 +0200 Subject: [PATCH] feat: programmatically generate list of available views --- src/components/sharing/linkSharing.vue | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/components/sharing/linkSharing.vue b/src/components/sharing/linkSharing.vue index abec02a3..5fede63a 100644 --- a/src/components/sharing/linkSharing.vue +++ b/src/components/sharing/linkSharing.vue @@ -145,17 +145,11 @@
@@ -234,6 +228,8 @@ type SelectedViewMapper = Record const selectedView = ref({}) +const availableViews = computed(() => Object.values(LIST_VIEWS)) + const copy = useCopyToClipboard() watch( () => props.listId,