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

Rename credential tooltip component string

- For better legibility
This commit is contained in:
kialam 2018-06-04 12:32:54 -04:00
parent 2ee361db5d
commit b8404abb26
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ function ComponentsStrings (BaseString) {
}; };
ns.tooltips = { ns.tooltips = {
CREDENTIAL: t.s('View the Credential'), VIEW_THE_CREDENTIAL: t.s('View the Credential'),
}; };
ns.layout = { ns.layout = {

View File

@ -2,12 +2,12 @@ function TagService (strings, $filter) {
this.buildCredentialTag = (credential) => { this.buildCredentialTag = (credential) => {
const icon = `${credential.kind}`; const icon = `${credential.kind}`;
const link = `/#/credentials/${credential.id}`; const link = `/#/credentials/${credential.id}`;
const tooltip = strings.get('tooltips.CREDENTIAL'); const tooltip = strings.get('tooltips.VIEW_THE_CREDENTIAL');
const value = $filter('sanitize')(credential.name); const value = $filter('sanitize')(credential.name);
return { icon, link, tooltip, value }; return { icon, link, tooltip, value };
}; };
this.buildTag = tag => { this.buildTag = (tag) => {
const value = $filter('sanitize')(tag); const value = $filter('sanitize')(tag);
return { value }; return { value };