Browse Source

fix: fields should be readonly in public shared view

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/679/head
Pranav C 3 years ago
parent
commit
83249017fc
  1. 2
      packages/nc-gui/components/project/spreadsheet/components/editableCell.vue
  2. 1
      packages/nc-gui/components/project/spreadsheet/views/xcGridView.vue

2
packages/nc-gui/components/project/spreadsheet/components/editableCell.vue

@ -107,7 +107,7 @@
<text-cell v-else v-model="localState" v-on="$listeners" />
<span v-if="hint" class="nc-hint">{{ hint }}</span>
<div v-if="isLocked" class="nc-locked-overlay" />
<div v-if="isLocked || (isPublic && !isForm)" class="nc-locked-overlay" />
</div>
</template>

1
packages/nc-gui/components/project/spreadsheet/views/xcGridView.vue

@ -182,6 +182,7 @@
:sql-ui="sqlUi"
:db-alias="nodes.dbAlias"
:is-locked="isLocked"
:is-public="isPublicView"
@save="editEnabled = {}"
@cancel="editEnabled = {}"
@update="onCellValueChange(col, row, columnObj)"

Loading…
Cancel
Save