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:
parent
2ee361db5d
commit
b8404abb26
@ -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 = {
|
||||||
|
@ -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 };
|
||||||
|
Loading…
Reference in New Issue
Block a user