From d84192d1e6cc9ba8b5b944b3c01ac206014c0d52 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Tue, 22 Nov 2022 11:35:45 +0200 Subject: [PATCH 1/2] feat: Add share button to workflows list --- .../src/components/MainHeader/WorkflowDetails.vue | 2 +- packages/editor-ui/src/components/Modals.vue | 8 +++++++- packages/editor-ui/src/components/WorkflowCard.vue | 9 ++++++++- .../src/components/WorkflowShareModal.ee.vue | 12 +++++++++--- packages/editor-ui/src/plugins/i18n/locales/en.json | 1 + 5 files changed, 26 insertions(+), 6 deletions(-) diff --git a/packages/editor-ui/src/components/MainHeader/WorkflowDetails.vue b/packages/editor-ui/src/components/MainHeader/WorkflowDetails.vue index 5e43bbe1a4f8b..0cff15cddce53 100644 --- a/packages/editor-ui/src/components/MainHeader/WorkflowDetails.vue +++ b/packages/editor-ui/src/components/MainHeader/WorkflowDetails.vue @@ -241,7 +241,7 @@ export default mixins(workflowHelpers, titleChange).extend({ if (saved) await this.settingsStore.fetchPromptsData(); }, onShareButtonClick() { - this.uiStore.openModal(WORKFLOW_SHARE_MODAL_KEY); + this.uiStore.openModalWithData({ name: WORKFLOW_SHARE_MODAL_KEY, data: { id: this.currentWorkflowId } }); }, onTagsEditEnable() { this.$data.appliedTagIds = this.currentWorkflowTagIds; diff --git a/packages/editor-ui/src/components/Modals.vue b/packages/editor-ui/src/components/Modals.vue index aa66a3bddb9f5..ce072545d3d33 100644 --- a/packages/editor-ui/src/components/Modals.vue +++ b/packages/editor-ui/src/components/Modals.vue @@ -83,7 +83,13 @@ - + diff --git a/packages/editor-ui/src/components/WorkflowCard.vue b/packages/editor-ui/src/components/WorkflowCard.vue index 8b1e185efa764..466f52cd11fbe 100644 --- a/packages/editor-ui/src/components/WorkflowCard.vue +++ b/packages/editor-ui/src/components/WorkflowCard.vue @@ -59,7 +59,7 @@