From a8c227fb17a590a1ae44956d6a6b2868c843ab05 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 21 Apr 2020 20:24:24 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 1 + ayanova/src/main.js | 2 ++ ayanova/src/views/widget.vue | 12 +++++++++++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 43049e34..8ea02477 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -98,6 +98,7 @@ todo: AFTER ATTACHMENTS WIKI IMAGES - baseurl setting for local images: https://marked.js.org/#/USING_ADVANCED.md#options - in v7 images are not part of attachment system but rather embedded somehow in the document (have to refresh how that works for export dbdump) +todo: after attachments - integration tests update todo: after attachments - DATADUMP - v7 wiki to RAVEN markdown - https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/3468 diff --git a/ayanova/src/main.js b/ayanova/src/main.js index 5d362390..c470b9cc 100644 --- a/ayanova/src/main.js +++ b/ayanova/src/main.js @@ -47,6 +47,7 @@ import errorControl from "./components/error-control.vue"; import reportSelectorControl from "./components/report-selector-control.vue"; import reportViewerControl from "./components/report-viewer-control.vue"; import wikiControl from "./components/wiki-control.vue"; +import attachmentControl from "./components/attachment-control.vue"; //************************************************************** //************************************************************** @@ -177,6 +178,7 @@ Vue.component("gz-error", errorControl); Vue.component("gz-report-selector", reportSelectorControl); Vue.component("gz-report-viewer", reportViewerControl); Vue.component("gz-wiki", wikiControl); +Vue.component("gz-attachments", attachmentControl); //3rd party components Vue.use(VueCurrencyInput); diff --git a/ayanova/src/views/widget.vue b/ayanova/src/views/widget.vue index 36268803..9235817f 100644 --- a/ayanova/src/views/widget.vue +++ b/ayanova/src/views/widget.vue @@ -214,6 +214,14 @@ @input="fieldValueChanged('wiki')" > + + + @@ -238,6 +246,7 @@ const FORM_KEY = "widget-edit"; const API_BASE_URL = "Widget/"; const FORM_CUSTOM_TEMPLATE_KEY = "Widget"; + export default { created() { let vm = this; @@ -337,7 +346,8 @@ export default { appError: null, serverError: {} }, - rights: window.$gz.role.defaultRightsObject() + rights: window.$gz.role.defaultRightsObject(), + ayType: window.$gz.type.Widget }; }, //WATCHERS