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

use translated string for scope in tokens list

This commit is contained in:
John Mitchell 2018-05-10 12:38:56 -04:00
parent 6c26574718
commit 956596227b
No known key found for this signature in database
GPG Key ID: FE6A9B5BD4EB5C94
2 changed files with 9 additions and 1 deletions

View File

@ -38,6 +38,14 @@ function ListTokensController (
vm.tokensCount = dataset.count;
});
vm.getScopeString = str => {
if (str === 'Read') {
return vm.strings.get('add.SCOPE_READ_LABEL');
} else if (str === 'Write') {
return vm.strings.get('add.SCOPE_WRITE_LABEL');
}
}
vm.getLastUsed = token => {
const lastUsed = _.get(token, 'last_used');

View File

@ -33,7 +33,7 @@
</at-row-item>
<at-row-item
label-value="{{:: vm.strings.get('list.ROW_ITEM_LABEL_SCOPE') }}"
value="{{ token.scope }}">
value="{{ vm.getScopeString(token.scope) }}">
</at-row-item>
<at-row-item
label-value="{{:: vm.strings.get('list.ROW_ITEM_LABEL_APPLICATION') }}"