diff --git a/src/App.vue b/src/App.vue index a2ba161e2..cab3d7dc9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -52,6 +52,7 @@ @@ -443,7 +446,11 @@ export default { minimap: { enabled: false } - } + }, + showTemplatesPanel: false, + reshowTemplatesPanel: false, + myTemplatesData: null, + sharedTemplatesData: null, }; }, computed: { @@ -696,6 +703,12 @@ export default { openWatchersPopup() { this.$refs.watchersPopup.show(); }, + openTemplatesPanel() { + this.showTemplatesPanel = true; + this.reshowTemplatesPanel = true; + this.$emit('update-templates-panel', this.showTemplatesPanel); + window.ProcessMaker.EventBus.$emit("open-templates-panel"); + }, openComputedProperties() { this.$refs.computedProperties.show(); }, diff --git a/src/components/ScreenTemplates.vue b/src/components/ScreenTemplates.vue index edafafd9b..2db30a5a9 100644 --- a/src/components/ScreenTemplates.vue +++ b/src/components/ScreenTemplates.vue @@ -1,12 +1,32 @@