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:
parent
9b5371f2ab
commit
565b0b82dd
@ -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?')
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
});
|
||||
|
@ -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;
|
||||
});
|
||||
|
@ -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;
|
||||
});
|
||||
|
@ -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 = {
|
||||
|
@ -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?')
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
});
|
||||
|
@ -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;
|
||||
});
|
||||
|
@ -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?')
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
});
|
||||
|
@ -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?')
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user