diff --git a/packages/editor-ui/src/components/WorkflowShareModal.ee.vue b/packages/editor-ui/src/components/WorkflowShareModal.ee.vue index 72bfa87cf4..f617badf1e 100644 --- a/packages/editor-ui/src/components/WorkflowShareModal.ee.vue +++ b/packages/editor-ui/src/components/WorkflowShareModal.ee.vue @@ -282,9 +282,9 @@ export default mixins( const isLastUserWithAccessToCredentials = Object.values(isLastUserWithAccessToCredentialsById).some((value) => value); let confirm = true; - if (!isNewSharee) { + if (!isNewSharee && isLastUserWithAccessToCredentials) { confirm = await this.confirmMessage( - this.$locale.baseText(`workflows.shareModal.list.delete.confirm.${isLastUserWithAccessToCredentials ? 'lastUserWithAccessToCredentials.' : ''}message`, { + this.$locale.baseText(`workflows.shareModal.list.delete.confirm.lastUserWithAccessToCredentials.message`, { interpolate: { name: user.fullName as string, workflow: this.workflow.name }, }), this.$locale.baseText('workflows.shareModal.list.delete.confirm.title', { interpolate: { name: user.fullName } }), diff --git a/packages/editor-ui/src/plugins/i18n/locales/en.json b/packages/editor-ui/src/plugins/i18n/locales/en.json index b78d07217b..0792a01d1f 100644 --- a/packages/editor-ui/src/plugins/i18n/locales/en.json +++ b/packages/editor-ui/src/plugins/i18n/locales/en.json @@ -1399,7 +1399,6 @@ "workflows.shareModal.select.placeholder": "Add people", "workflows.shareModal.list.delete": "Remove access", "workflows.shareModal.list.delete.confirm.title": "Remove {name}'s access?", - "workflows.shareModal.list.delete.confirm.message": "{name} will no longer have access to the workflow.", "workflows.shareModal.list.delete.confirm.lastUserWithAccessToCredentials.message": "This might cause the workflow to stop working: {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.cancelButtonText": "Cancel",