|
|
@ -109,6 +109,8 @@ const isOpenCustomUrl = computed(() => { |
|
|
|
return !!activeView.value?.custom_url_path || isOpenCustomUrlLocal.value |
|
|
|
return !!activeView.value?.custom_url_path || isOpenCustomUrlLocal.value |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const customUrlInputRef = ref() |
|
|
|
|
|
|
|
|
|
|
|
const customUrl = ref() |
|
|
|
const customUrl = ref() |
|
|
|
|
|
|
|
|
|
|
|
// const customUrl = computed({ |
|
|
|
// const customUrl = computed({ |
|
|
@ -151,10 +153,13 @@ const toggleCustomUrl = async () => { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
customUrl.value = null |
|
|
|
customUrl.value = null |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
await updateSharedView() |
|
|
|
await updateSharedView() |
|
|
|
} finally { |
|
|
|
} finally { |
|
|
|
isUpdating.value.customUrl = false |
|
|
|
isUpdating.value.customUrl = false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isOpenCustomUrl.value) { |
|
|
|
|
|
|
|
customUrlInputRef.value?.focus() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -402,6 +407,7 @@ async function savePreFilledMode() { |
|
|
|
> |
|
|
|
> |
|
|
|
<div class="text-nc-content-gray-muted">{{ dashboardUrl1 }}#/shared/</div> |
|
|
|
<div class="text-nc-content-gray-muted">{{ dashboardUrl1 }}#/shared/</div> |
|
|
|
<a-input |
|
|
|
<a-input |
|
|
|
|
|
|
|
ref="customUrlInputRef" |
|
|
|
v-model:value="customUrl" |
|
|
|
v-model:value="customUrl" |
|
|
|
placeholder="Enter custom url" |
|
|
|
placeholder="Enter custom url" |
|
|
|
class="!rounded-lg !py-1 h-8" |
|
|
|
class="!rounded-lg !py-1 h-8" |
|
|
|