feat: Add share button to workflows list (#4681)

* feat: Add share button to workflows list

* fix: take empty workflow into account when sharing
This commit is contained in:
Alex Grozav
2022-11-22 12:33:40 +02:00
committed by GitHub
parent b5b44d1b59
commit a356d7bdba
6 changed files with 40 additions and 7 deletions

View File

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