This commit is contained in:
2020-04-21 20:24:24 +00:00
parent 9c9f5108c9
commit a8c227fb17
3 changed files with 14 additions and 1 deletions

View File

@@ -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

View File

@@ -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);

View File

@@ -214,6 +214,14 @@
@input="fieldValueChanged('wiki')"
></gz-wiki
></v-col>
<v-col v-if="form().showMe(this, 'Attachments')" cols="12">
<gz-attachments
:readonly="formState.readOnly"
:parentVM="this"
:ayaType="ayType"
></gz-attachments
></v-col>
</v-row>
</v-form>
</v-col>
@@ -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