Browse Source

fix: Made share view toggle locked in locked mode

pull/7067/head
Muhammed Mustafa 12 months ago
parent
commit
0eaec11254
  1. 8
      packages/nc-gui/components/dlg/share-and-collaborate/SharePage.vue

8
packages/nc-gui/components/dlg/share-and-collaborate/SharePage.vue

@ -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>

Loading…
Cancel
Save