|
|
@ -1,9 +1,9 @@ |
|
|
|
<script lang="ts" setup> |
|
|
|
<script lang="ts" setup> |
|
|
|
import { useRoute } from '#app' |
|
|
|
|
|
|
|
import { computed } from '@vue/reactivity' |
|
|
|
import { computed } from '@vue/reactivity' |
|
|
|
import { useClipboard } from '@vueuse/core' |
|
|
|
import { useClipboard } from '@vueuse/core' |
|
|
|
import { ViewTypes } from 'nocodb-sdk' |
|
|
|
import { ViewTypes } from 'nocodb-sdk' |
|
|
|
import { useToast } from 'vue-toastification' |
|
|
|
import { useToast } from 'vue-toastification' |
|
|
|
|
|
|
|
import { useRoute } from '#app' |
|
|
|
import { onMounted } from '#imports' |
|
|
|
import { onMounted } from '#imports' |
|
|
|
import { useSmartsheetStoreOrThrow } from '~/composables/useSmartsheetStore' |
|
|
|
import { useSmartsheetStoreOrThrow } from '~/composables/useSmartsheetStore' |
|
|
|
import { extractSdkResponseErrorMsg } from '~/utils/errorUtils' |
|
|
|
import { extractSdkResponseErrorMsg } from '~/utils/errorUtils' |
|
|
@ -30,7 +30,6 @@ let isLoading = $ref(false) |
|
|
|
// let activeSharedView = $ref(null) |
|
|
|
// let activeSharedView = $ref(null) |
|
|
|
const sharedViewList = ref<SharedViewType[]>() |
|
|
|
const sharedViewList = ref<SharedViewType[]>() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const loadSharedViewsList = async () => { |
|
|
|
const loadSharedViewsList = async () => { |
|
|
|
isLoading = true |
|
|
|
isLoading = true |
|
|
|
const list = await $api.dbViewShare.list(meta.value?.id as string) |
|
|
|
const list = await $api.dbViewShare.list(meta.value?.id as string) |
|
|
@ -57,7 +56,7 @@ const loadSharedViewsList = async () => { |
|
|
|
onMounted(loadSharedViewsList) |
|
|
|
onMounted(loadSharedViewsList) |
|
|
|
|
|
|
|
|
|
|
|
// todo: get correct dashboard url |
|
|
|
// todo: get correct dashboard url |
|
|
|
const dashboardUrl = computed(() =>{ |
|
|
|
const dashboardUrl = computed(() => { |
|
|
|
return `${location.origin}` |
|
|
|
return `${location.origin}` |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
@ -99,7 +98,6 @@ const deleteLink = async (id: string) => { |
|
|
|
toast.error(await extractSdkResponseErrorMsg(e)) |
|
|
|
toast.error(await extractSdkResponseErrorMsg(e)) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|