mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 01:38:50 -03:30
fix when token scope is passing when the ui saves the form
This commit is contained in:
@@ -32,9 +32,9 @@ function AddTokensController (
|
|||||||
|
|
||||||
vm.form.scope = {
|
vm.form.scope = {
|
||||||
choices: [
|
choices: [
|
||||||
'',
|
[null, ''],
|
||||||
'read',
|
['read', strings.get('add.SCOPE_READ_LABEL')],
|
||||||
'write'
|
['write', strings.get('add.SCOPE_WRITE_LABEL')]
|
||||||
],
|
],
|
||||||
help_text: strings.get('add.SCOPE_HELP_TEXT'),
|
help_text: strings.get('add.SCOPE_HELP_TEXT'),
|
||||||
id: 'scope',
|
id: 'scope',
|
||||||
@@ -42,12 +42,12 @@ function AddTokensController (
|
|||||||
required: true,
|
required: true,
|
||||||
_component: 'at-input-select',
|
_component: 'at-input-select',
|
||||||
_data: [
|
_data: [
|
||||||
strings.get('add.SCOPE_PLACEHOLDER'),
|
[null, ''],
|
||||||
strings.get('add.SCOPE_READ_LABEL'),
|
['read', strings.get('add.SCOPE_READ_LABEL')],
|
||||||
strings.get('add.SCOPE_WRITE_LABEL')
|
['write', strings.get('add.SCOPE_WRITE_LABEL')]
|
||||||
],
|
],
|
||||||
_exp: 'choice for (index, choice) in state._data',
|
_exp: 'choice[1] for (index, choice) in state._data',
|
||||||
_format: 'array'
|
_format: 'selectFromOptions'
|
||||||
};
|
};
|
||||||
|
|
||||||
vm.form.save = payload => {
|
vm.form.save = payload => {
|
||||||
|
|||||||
Reference in New Issue
Block a user