Merge pull request #7102 from gconsidine/ui/fix/ssh-credential-privilege-selection

Change the value of an SSH credentials privilege
This commit is contained in:
Greg Considine 2017-07-17 15:01:39 -04:00 committed by GitHub
commit 676d0de6ab
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ function AtInputGroupController ($scope, $compile) {
config._component = 'at-input-select';
config._format = 'array';
config._data = input.choices;
config._exp = 'index as choice for (index, choice) in state._data';
config._exp = 'choice for (index, choice) in state._data';
} else {
let preface = vm.strings.get('group.UNSUPPORTED_ERROR_PREFACE');
throw new Error(`${preface}: ${input.type}`)

View File

@ -59,7 +59,7 @@ function AtInputSelectController (baseInputController, eventService) {
vm.updateDisplayModel = () => {
if (scope.state._format === 'array') {
scope.displayModel = scope.state._data[scope.state._value];
scope.displayModel = scope.state._value;
} else if (scope.state._format === 'objects') {
scope.displayModel = scope.state._value[scope.state._display];
} else if (scope.state._format === 'grouped-object') {