Tweaked language on delete warning modal

This commit is contained in:
mabashian
2017-11-17 12:45:01 -05:00
parent 9b5371f2ab
commit 565b0b82dd
11 changed files with 12 additions and 18 deletions

View File

@@ -29,8 +29,7 @@ function CredentialsStrings (BaseString) {
}; };
ns.deleteCredential = { ns.deleteCredential = {
CONFIRM: t.s('Are you sure you want to delete this credential?'), CONFIRM: t.s('The credential is currently being used by other resources. Are you sure you want to delete this credential?')
INVALIDATE: t.s('Doing so will invalidate the following:')
}; };
} }

View File

@@ -123,7 +123,7 @@ export default ['$scope', 'Rest', 'CredentialList', 'Prompt', 'ProcessErrors', '
}); });
if (invalidateRelatedLines && invalidateRelatedLines.length > 0) { if (invalidateRelatedLines && invalidateRelatedLines.length > 0) {
deleteModalBody = `<div class="Prompt-bodyQuery">${CredentialsStrings.get('deleteCredential.CONFIRM')} ${CredentialsStrings.get('deleteCredential.INVALIDATE')}</div>`; deleteModalBody = `<div class="Prompt-bodyQuery">${CredentialsStrings.get('deleteCredential.CONFIRM')}</div>`;
invalidateRelatedLines.forEach(invalidateRelatedLine => { invalidateRelatedLines.forEach(invalidateRelatedLine => {
deleteModalBody += invalidateRelatedLine; deleteModalBody += invalidateRelatedLine;
}); });

View File

@@ -110,7 +110,7 @@ function InventoriesList($scope,
}); });
if (invalidateRelatedLines && invalidateRelatedLines.length > 0) { if (invalidateRelatedLines && invalidateRelatedLines.length > 0) {
deleteModalBody = `<div class="Prompt-bodyQuery">${InventoryHostsStrings.get('deleteInventory.CONFIRM')} ${InventoryHostsStrings.get('deleteInventory.INVALIDATE')}</div>`; deleteModalBody = `<div class="Prompt-bodyQuery">${InventoryHostsStrings.get('deleteInventory.CONFIRM')}</div>`;
invalidateRelatedLines.forEach(invalidateRelatedLine => { invalidateRelatedLines.forEach(invalidateRelatedLine => {
deleteModalBody += invalidateRelatedLine; deleteModalBody += invalidateRelatedLine;
}); });

View File

@@ -152,7 +152,7 @@
}); });
if (invalidateRelatedLines && invalidateRelatedLines.length > 0) { if (invalidateRelatedLines && invalidateRelatedLines.length > 0) {
deleteModalBody = `<div class="Prompt-bodyQuery">${InventoryHostsStrings.get('deleteSource.CONFIRM')} ${InventoryHostsStrings.get('deleteSource.INVALIDATE')}</div>`; deleteModalBody = `<div class="Prompt-bodyQuery">${InventoryHostsStrings.get('deleteSource.CONFIRM')}</div>`;
invalidateRelatedLines.forEach(invalidateRelatedLine => { invalidateRelatedLines.forEach(invalidateRelatedLine => {
deleteModalBody += invalidateRelatedLine; deleteModalBody += invalidateRelatedLine;
}); });

View File

@@ -5,13 +5,11 @@ function InventoryHostsStrings (BaseString) {
let ns = this['inventory-hosts']; let ns = this['inventory-hosts'];
ns.deleteInventory = { ns.deleteInventory = {
CONFIRM: t.s('Are you sure you want to delete this inventory?'), CONFIRM: t.s('The inventory is currently being used by other resources. Are you sure you want to delete this inventory?')
INVALIDATE: t.s('Doing so will invalidate the following:')
}; };
ns.deleteSource = { ns.deleteSource = {
CONFIRM: t.s('Are you sure you want to delete this inventory source?'), CONFIRM: t.s('The inventory source is currently being used by other resources. Are you sure you want to delete this inventory source?')
INVALIDATE: t.s('Doing so will invalidate the following:')
}; };
ns.deletegroup = { ns.deletegroup = {

View File

@@ -5,8 +5,7 @@ function InventoryScriptsStrings (BaseString) {
let ns = this.inventory_scripts; let ns = this.inventory_scripts;
ns.deleteInventoryScript = { ns.deleteInventoryScript = {
CONFIRM: t.s('Are you sure you want to delete this inventory script?'), CONFIRM: t.s('The inventory script is currently being used by other resources. Are you sure you want to delete this inventory script?')
INVALIDATE: t.s('Doing so will invalidate the following:')
}; };
} }

View File

@@ -89,7 +89,7 @@ export default ['$rootScope', '$scope', 'Wait', 'InventoryScriptsList',
}); });
if (invalidateRelatedLines && invalidateRelatedLines.length > 0) { if (invalidateRelatedLines && invalidateRelatedLines.length > 0) {
deleteModalBody = `<div class="Prompt-bodyQuery">${InventoryScriptsStrings.get('deleteInventoryScript.CONFIRM')} ${InventoryScriptsStrings.get('deleteInventoryScript.INVALIDATE')}</div>`; deleteModalBody = `<div class="Prompt-bodyQuery">${InventoryScriptsStrings.get('deleteInventoryScript.CONFIRM')}</div>`;
invalidateRelatedLines.forEach(invalidateRelatedLine => { invalidateRelatedLines.forEach(invalidateRelatedLine => {
deleteModalBody += invalidateRelatedLine; deleteModalBody += invalidateRelatedLine;
}); });

View File

@@ -215,7 +215,7 @@ export default ['$scope', '$rootScope', '$log', 'Rest', 'Alert',
}); });
if (invalidateRelatedLines && invalidateRelatedLines.length > 0) { if (invalidateRelatedLines && invalidateRelatedLines.length > 0) {
deleteModalBody = `<div class="Prompt-bodyQuery">${ProjectsStrings.get('deleteProject.CONFIRM')} ${ProjectsStrings.get('deleteProject.INVALIDATE')}</div>`; deleteModalBody = `<div class="Prompt-bodyQuery">${ProjectsStrings.get('deleteProject.CONFIRM')}</div>`;
invalidateRelatedLines.forEach(invalidateRelatedLine => { invalidateRelatedLines.forEach(invalidateRelatedLine => {
deleteModalBody += invalidateRelatedLine; deleteModalBody += invalidateRelatedLine;
}); });

View File

@@ -5,8 +5,7 @@ function ProjectsStrings (BaseString) {
let ns = this.projects; let ns = this.projects;
ns.deleteProject = { ns.deleteProject = {
CONFIRM: t.s('Are you sure you want to delete this project?'), CONFIRM: t.s('The project is currently being used by other resources. Are you sure you want to delete this project?')
INVALIDATE: t.s('Doing so will invalidate the following:')
}; };
} }

View File

@@ -173,7 +173,7 @@ export default ['$scope', '$rootScope',
}); });
if (invalidateRelatedLines && invalidateRelatedLines.length > 0) { if (invalidateRelatedLines && invalidateRelatedLines.length > 0) {
deleteModalBody = `<div class="Prompt-bodyQuery">${TemplatesStrings.get('jobTemplates.deleteJobTemplate.CONFIRM')} ${TemplatesStrings.get('jobTemplates.deleteJobTemplate.INVALIDATE')}</div>`; deleteModalBody = `<div class="Prompt-bodyQuery">${TemplatesStrings.get('jobTemplates.deleteJobTemplate.CONFIRM')}</div>`;
invalidateRelatedLines.forEach(invalidateRelatedLine => { invalidateRelatedLines.forEach(invalidateRelatedLine => {
deleteModalBody += invalidateRelatedLine; deleteModalBody += invalidateRelatedLine;
}); });

View File

@@ -6,8 +6,7 @@ function TemplatesStrings (BaseString) {
ns.jobTemplates = { ns.jobTemplates = {
deleteJobTemplate: { deleteJobTemplate: {
CONFIRM: t.s('Are you sure you want to delete this job template?'), CONFIRM: t.s('The job template is currently being used by other resources. Are you sure you want to delete this job template?')
INVALIDATE: t.s('Doing so will invalidate the following:')
} }
}; };