Browse Source

feat(gui-v2): disable add column button in a locked view

pull/3209/head
Wing-Kam Wong 2 years ago
parent
commit
31153fd674
  1. 2
      packages/nc-gui-v2/components/smartsheet/Grid.vue

2
packages/nc-gui-v2/components/smartsheet/Grid.vue

@ -331,7 +331,7 @@ const expandForm = (row: Row, state: Record<string, any>) => {
</th> </th>
<!-- v-if="!isLocked && !isVirtual && !isPublicView && _isUIAllowed('add-column')" --> <!-- v-if="!isLocked && !isVirtual && !isPublicView && _isUIAllowed('add-column')" -->
<th <th
v-if="!readonly && isUIAllowed('add-column')" v-if="!readonly && !isLocked && isUIAllowed('add-column')"
v-t="['c:column:add']" v-t="['c:column:add']"
class="cursor-pointer" class="cursor-pointer"
@click.stop="addColumnDropdown = true" @click.stop="addColumnDropdown = true"

Loading…
Cancel
Save