Browse Source

fix(nc-gui): disable add / edit stack in share kanban view

#3839
pull/3563/head
Wing-Kam Wong 2 years ago
parent
commit
154e72ffd8
  1. 6
      packages/nc-gui/components/smartsheet/toolbar/KanbanStackEditOrAdd.vue

6
packages/nc-gui/components/smartsheet/toolbar/KanbanStackEditOrAdd.vue

@ -1,5 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { IsLockedInj, useKanbanViewStoreOrThrow } from '#imports' import { IsLockedInj, IsPublicInj, useKanbanViewStoreOrThrow } from '#imports'
const { isUIAllowed } = useUIPermission() const { isUIAllowed } = useUIPermission()
@ -9,6 +9,8 @@ const isLocked = inject(IsLockedInj, ref(false))
const addOrEditStackDropdown = ref(false) const addOrEditStackDropdown = ref(false)
const IsPublic = inject(IsPublicInj, ref(false))
const handleSubmit = async () => { const handleSubmit = async () => {
addOrEditStackDropdown.value = false addOrEditStackDropdown.value = false
} }
@ -18,7 +20,7 @@ provide(IsKanbanInj, ref(true))
<template> <template>
<a-dropdown <a-dropdown
v-if="isUIAllowed('edit-column')" v-if="!IsPublic && isUIAllowed('edit-column')"
v-model:visible="addOrEditStackDropdown" v-model:visible="addOrEditStackDropdown"
:trigger="['click']" :trigger="['click']"
overlay-class-name="nc-dropdown-kanban-add-edit-stack-menu" overlay-class-name="nc-dropdown-kanban-add-edit-stack-menu"

Loading…
Cancel
Save