diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 26a665c7..85d57947 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -1515,6 +1515,16 @@ todo: enter new tag in widget doesn't trigger dirty? todo: Test widget form as bizamdinlimited read only mode because I think several things are not right in read only mode todo: BUG Something fucked with history? When I click on a widget's history button in admin user history view it shows two created record with differing timestamps - note, it doesn't seem to do it on the most recent widgets, but only on the first few created for some reason?! +todo: Not sure I like not being able to logout from a widget edit form + - put back? + - Put in nav menu to left (seems logical that way) and remove from any other menu + - as bottom option +todo: would like to see who I'm logged in as at all times + - In menu instead of "Home" text? + - In status bar at bottom? + - need a place to show notification alert also so maybe will need this going forward + - like v7 has + - todo: QUOTE icon being used is fa-edit, but, that is much more useful in the UI for edit buttons on things, so change quote icon to something else diff --git a/ayanova/src/api/gzform.js b/ayanova/src/api/gzform.js index f267ce82..570655bc 100644 --- a/ayanova/src/api/gzform.js +++ b/ayanova/src/api/gzform.js @@ -564,6 +564,17 @@ export default { // NOTE: that in a form this should only be used with non stock-required fields, if they are already required they cannot be hidden // showMe(vm, formCustomTemplateFieldName) { + //special check for wikiContent + //if read only then can't add any content and if no content then no reason to show it at all + if (formCustomTemplateFieldName == "wikiContent") { + if ( + vm.formState.readOnly && + (vm.obj.wikiContent == null || vm.obj.wikiContent.length == 0) + ) { + return false; + } + } + let template = window.$gz.store.state.formCustomTemplate[vm.formCustomTemplateKey]; if (template === undefined) { diff --git a/ayanova/src/views/widget.vue b/ayanova/src/views/widget.vue index 80dec34b..2a28e79f 100644 --- a/ayanova/src/views/widget.vue +++ b/ayanova/src/views/widget.vue @@ -205,13 +205,7 @@ > - +