This commit is contained in:
2020-04-17 14:37:48 +00:00
parent e73665da5b
commit 6873df59a0
3 changed files with 13 additions and 2 deletions

View File

@@ -175,7 +175,8 @@ export default {
/**
todo:
flag as dirty when edited
todo: Add wikiContent field to form defintions at server so can hide or show in customization
- Also for dataLists? (for reporting not grid I mean)
if can't edit and no content then don't show at all
- does it need to have a column wrapper then and remove it from the parent form?

View File

@@ -204,7 +204,14 @@
@input="fieldValueChanged('customFields')"
></gz-custom-fields>
</v-col>
<v-col cols="12">
<!-- Show the wiki unless hidden by form customization or not read only, or if it has content -->
<v-col
v-if="
form().showMe(this, 'wikiContent') &&
(!formState.ReadOnly || obj.wikiContent)
"
cols="12"
>
<gz-wiki
ref="wikiContent"
v-model="obj.wikiContent"