Merge pull request #1977 from jlmitch5/fixTokenScopeAddInUI

Fix token scope add in ui
This commit is contained in:
John Mitchell
2018-05-31 09:35:15 -04:00
committed by GitHub

View File

@@ -32,9 +32,9 @@ function AddTokensController (
vm.form.scope = {
choices: [
'',
'read',
'write'
[null, ''],
['read', strings.get('add.SCOPE_READ_LABEL')],
['write', strings.get('add.SCOPE_WRITE_LABEL')]
],
help_text: strings.get('add.SCOPE_HELP_TEXT'),
id: 'scope',
@@ -42,12 +42,12 @@ function AddTokensController (
required: true,
_component: 'at-input-select',
_data: [
{ label: strings.get('add.SCOPE_PLACEHOLDER'), value: '' },
{ label: strings.get('add.SCOPE_READ_LABEL'), value: 'read' },
{ label: strings.get('add.SCOPE_WRITE_LABEL'), value: 'write' }
[null, ''],
['read', strings.get('add.SCOPE_READ_LABEL')],
['write', strings.get('add.SCOPE_WRITE_LABEL')]
],
_exp: 'choice.value as choice.label for (index, choice) in state._data',
_format: 'array'
_exp: 'choice[1] for (index, choice) in state._data',
_format: 'selectFromOptions'
};
vm.form.save = payload => {