mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
fix: Remove delete sharee prompt except when deleting last cred accessor (no-changelog) (#4894)
* fix: Remove delete sharee prompt except when deleting last cred accessor (no-changelog) * chore: Remove unused translation
This commit is contained in:
parent
7d2e2ee0f7
commit
ca8e85933f
|
@ -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 } }),
|
||||
|
|
|
@ -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": "<strong>This might cause the workflow to stop working:</strong> {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",
|
||||
|
|
Loading…
Reference in a new issue