mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat: Show toast when saving workflow sharing settings (#4684)
This commit is contained in:
@@ -205,9 +205,20 @@ export default mixins(
|
||||
});
|
||||
};
|
||||
|
||||
const workflowId = await saveWorkflowPromise();
|
||||
await this.workflowsEEStore.saveWorkflowSharedWith({ workflowId, sharedWith: this.sharedWith });
|
||||
this.loading = false;
|
||||
try {
|
||||
const workflowId = await saveWorkflowPromise();
|
||||
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;
|
||||
}
|
||||
},
|
||||
async onAddSharee(userId: string) {
|
||||
const { id, firstName, lastName, email } = this.usersStore.getUserById(userId)!;
|
||||
|
||||
Reference in New Issue
Block a user