|
|
@ -16,6 +16,8 @@ const { metas } = useMetas() |
|
|
|
|
|
|
|
|
|
|
|
const workspaceStore = useWorkspace() |
|
|
|
const workspaceStore = useWorkspace() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isLocked = inject(IsLockedInj, ref(false)) |
|
|
|
|
|
|
|
|
|
|
|
const isUpdating = ref({ |
|
|
|
const isUpdating = ref({ |
|
|
|
public: false, |
|
|
|
public: false, |
|
|
|
password: false, |
|
|
|
password: false, |
|
|
@ -269,10 +271,6 @@ function onChangeTheme(color: string) { |
|
|
|
const isPublicShared = computed(() => { |
|
|
|
const isPublicShared = computed(() => { |
|
|
|
return !!activeView.value?.uuid |
|
|
|
return !!activeView.value?.uuid |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const isPublicShareDisabled = computed(() => { |
|
|
|
|
|
|
|
return false |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
@ -286,7 +284,7 @@ const isPublicShareDisabled = computed(() => { |
|
|
|
:checked="isPublicShared" |
|
|
|
:checked="isPublicShared" |
|
|
|
:loading="isUpdating.public" |
|
|
|
:loading="isUpdating.public" |
|
|
|
class="share-view-toggle !mt-0.25" |
|
|
|
class="share-view-toggle !mt-0.25" |
|
|
|
:disabled="isPublicShareDisabled" |
|
|
|
:disabled="isLocked" |
|
|
|
@click="toggleShare" |
|
|
|
@click="toggleShare" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|