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:
parent
6c26574718
commit
956596227b
@ -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');
|
||||
|
||||
|
@ -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') }}"
|
||||
|
Loading…
Reference in New Issue
Block a user