diff --git a/application/Espo/Resources/i18n/en_US/EntityManager.json b/application/Espo/Resources/i18n/en_US/EntityManager.json index 4f39dbea64..146b38e90b 100644 --- a/application/Espo/Resources/i18n/en_US/EntityManager.json +++ b/application/Espo/Resources/i18n/en_US/EntityManager.json @@ -73,7 +73,7 @@ } }, "messages": { - "confirmRemoveLink": "Are you sure you want to remove the relationship?", + "confirmRemoveLink": "Are you sure you want to remove the *{link}* relationship?", "nameIsAlreadyUsed": "Name '{name}' is already used.", "nameIsNotAllowed": "Name '{name}' is not allowed.", "nameIsTooLong": "Name is too long.", diff --git a/application/Espo/Resources/i18n/en_US/FieldManager.json b/application/Espo/Resources/i18n/en_US/FieldManager.json index a442632460..fd4addd74b 100644 --- a/application/Espo/Resources/i18n/en_US/FieldManager.json +++ b/application/Espo/Resources/i18n/en_US/FieldManager.json @@ -162,6 +162,7 @@ "linkMultiple": "A set of records related through Has-Many (many-to-many or one-to-many) relationship. Not all relationships have their link-multiple fields. Only those do, where Link-Multiple parameter(s) is enabled." }, "messages": { + "confirmRemove": "Are you sure you want to remove the *{field}* field?\n\nField removal does not remove data from the database. Data from the database will be removed if you run hard rebuild.", "fieldNameIsNotAllowed": "Field name '{field}' is not allowed.", "fieldAlreadyExists": "Field '{field}' already exists in '{entityType}'.", "linkWithSameNameAlreadyExists": "Link with the name '{field}' already exists in '{entityType}'." diff --git a/client/src/views/admin/field-manager/list.js b/client/src/views/admin/field-manager/list.js index ef6b5e4a1f..c0b1256bea 100644 --- a/client/src/views/admin/field-manager/list.js +++ b/client/src/views/admin/field-manager/list.js @@ -102,7 +102,10 @@ class FieldManagerListView extends View { } removeField(field) { - this.confirm(this.translate('confirmation', 'messages'), () => { + const msg = this.translate('confirmRemove', 'messages', 'FieldManager') + .replace('{field}', field); + + this.confirm(msg, () => { Espo.Ui.notify(' ... '); Espo.Ajax.deleteRequest('Admin/fieldManager/' + this.scope + '/' + field).then(() => { diff --git a/client/src/views/admin/link-manager/index.js b/client/src/views/admin/link-manager/index.js index 28777da06c..c8842613a0 100644 --- a/client/src/views/admin/link-manager/index.js +++ b/client/src/views/admin/link-manager/index.js @@ -59,7 +59,10 @@ class LinkManagerIndexView extends View { 'click [data-action="removeLink"]': function (e) { const link = $(e.currentTarget).data('link'); - this.confirm(this.translate('confirmRemoveLink', 'messages', 'EntityManager'), () => { + const msg = this.translate('confirmRemoveLink', 'messages', 'EntityManager') + .replace('{link}', link); + + this.confirm(msg, () => { this.removeLink(link); }); },