1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Tweaked language on delete warning modal

This commit is contained in:
mabashian 2017-11-17 12:45:01 -05:00
parent 9b5371f2ab
commit 565b0b82dd
No known key found for this signature in database
GPG Key ID: 436B8D5EDC704CE3
11 changed files with 12 additions and 18 deletions

View File

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

View File

@ -123,7 +123,7 @@ export default ['$scope', 'Rest', 'CredentialList', 'Prompt', 'ProcessErrors', '
});
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 => {
deleteModalBody += invalidateRelatedLine;
});

View File

@ -110,7 +110,7 @@ function InventoriesList($scope,
});
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 => {
deleteModalBody += invalidateRelatedLine;
});

View File

@ -152,7 +152,7 @@
});
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 => {
deleteModalBody += invalidateRelatedLine;
});

View File

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

View File

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

View File

@ -89,7 +89,7 @@ export default ['$rootScope', '$scope', 'Wait', 'InventoryScriptsList',
});
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 => {
deleteModalBody += invalidateRelatedLine;
});

View File

@ -215,7 +215,7 @@ export default ['$scope', '$rootScope', '$log', 'Rest', 'Alert',
});
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 => {
deleteModalBody += invalidateRelatedLine;
});

View File

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

View File

@ -173,7 +173,7 @@ export default ['$scope', '$rootScope',
});
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 => {
deleteModalBody += invalidateRelatedLine;
});

View File

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