Browse Source

feat(gui-v2): add isEditable to form view

pull/3030/head
Wing-Kam Wong 2 years ago
parent
commit
62c1436a7c
  1. 8
      packages/nc-gui-v2/components/smartsheet/Form.vue

8
packages/nc-gui-v2/components/smartsheet/Form.vue

@ -1,9 +1,11 @@
<script setup lang="ts">
import type { Permission } from '~/composables/useUIPermission/rolePermissions'
import { computed, inject } from '#imports'
import { MetaInj } from '~/context'
// TODO: get editEnabled
const editEnabled = ref(true)
const { isUIAllowed } = useUIPermission()
const isEditable = isUIAllowed('editFormView' as Permission)
const meta = inject(MetaInj)
@ -18,7 +20,7 @@ function removeAllColumns() {}
<template>
<a-row class="h-full">
<a-col v-if="editEnabled" :span="6" class="bg-[#f7f7f7] shadow-md pa-5">
<a-col v-if="isEditable" :span="6" class="bg-[#f7f7f7] shadow-md pa-5">
<div class="flex">
<div class="flex flex-row flex-1 text-lg">
<span>

Loading…
Cancel
Save