Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Reconfigure template panel events to listen from screenbuilder
Add data-cy attribute to templates button for testing
  • Loading branch information
mcraeteisha committed Sep 12, 2024
commit d0499f4ac2626d68d4390020bdaa007c3fda872e
9 changes: 9 additions & 0 deletions resources/js/processes/screen-builder/screen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ export default {
variant: "link",
icon: "fas fa-palette",
action: "openTemplatesPanel()",
dataCy: "button-templates",
},
{
id: "button_calcs",
Expand Down Expand Up @@ -733,6 +734,14 @@ export default {
ProcessMaker.EventBus.$on("show-create-template-modal", () => {
this.$refs["create-template-modal"].show();
});

ProcessMaker.EventBus.$on("open-templates-panel", () => {
this.openMyTemplates();
});

ProcessMaker.EventBus.$on("close-templates-panel", () => {
this.closeTemplatesPanel();
});
},
methods: {
...mapMutations("globalErrorsModule", { setStoreMode: "setMode" }),
Expand Down