mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
feat: Show toast when saving workflow sharing settings (#4684)
This commit is contained in:
parent
173badc4e0
commit
6f8d0de55d
|
@ -205,9 +205,20 @@ export default mixins(
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
try {
|
||||||
const workflowId = await saveWorkflowPromise();
|
const workflowId = await saveWorkflowPromise();
|
||||||
await this.workflowsEEStore.saveWorkflowSharedWith({ workflowId, sharedWith: this.sharedWith });
|
await this.workflowsEEStore.saveWorkflowSharedWith({ workflowId, sharedWith: this.sharedWith });
|
||||||
|
|
||||||
|
this.$showMessage({
|
||||||
|
title: this.$locale.baseText('workflows.shareModal.onSave.success.title'),
|
||||||
|
type: 'success',
|
||||||
|
});
|
||||||
|
} catch (error) {
|
||||||
|
this.$showError(error, this.$locale.baseText('workflows.shareModal.onSave.error.title'));
|
||||||
|
} finally {
|
||||||
|
this.modalBus.$emit('close');
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async onAddSharee(userId: string) {
|
async onAddSharee(userId: string) {
|
||||||
const { id, firstName, lastName, email } = this.usersStore.getUserById(userId)!;
|
const { id, firstName, lastName, email } = this.usersStore.getUserById(userId)!;
|
||||||
|
|
|
@ -1378,6 +1378,8 @@
|
||||||
"workflows.shareModal.list.delete.confirm.message": "<strong>This might cause the workflow to stop working:</strong> if {name} is the only user with access to credentials used in this workflow, those credentials will also be removed from {workflow}.",
|
"workflows.shareModal.list.delete.confirm.message": "<strong>This might cause the workflow to stop working:</strong> if {name} is the only user with access to credentials used in this workflow, those credentials will also be removed from {workflow}.",
|
||||||
"workflows.shareModal.list.delete.confirm.confirmButtonText": "Remove access",
|
"workflows.shareModal.list.delete.confirm.confirmButtonText": "Remove access",
|
||||||
"workflows.shareModal.list.delete.confirm.cancelButtonText": "Cancel",
|
"workflows.shareModal.list.delete.confirm.cancelButtonText": "Cancel",
|
||||||
|
"workflows.shareModal.onSave.success.title": "Workflow sharing settings have been saved",
|
||||||
|
"workflows.shareModal.onSave.error.title": "There was a problem saving sharing settings",
|
||||||
"workflows.shareModal.saveBeforeClose.title": "Save sharing changes?",
|
"workflows.shareModal.saveBeforeClose.title": "Save sharing changes?",
|
||||||
"workflows.shareModal.saveBeforeClose.message": "You have unsaved changes. Do you want to save them before closing?",
|
"workflows.shareModal.saveBeforeClose.message": "You have unsaved changes. Do you want to save them before closing?",
|
||||||
"workflows.shareModal.saveBeforeClose.confirmButtonText": "Save",
|
"workflows.shareModal.saveBeforeClose.confirmButtonText": "Save",
|
||||||
|
|
Loading…
Reference in a new issue