mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 04:47:44 -02:30
Tweaked language on delete warning modal
This commit is contained in:
@@ -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:')
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -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:')
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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:')
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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:')
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user