In progress: Adding GCE to inventory source.

This commit is contained in:
Luke Sneeringer
2014-07-21 15:20:38 -05:00
parent 4c887c5614
commit c6f7c1d2da
3 changed files with 22 additions and 10 deletions

View File

@@ -47,7 +47,7 @@ angular.module('SourceFormDefinition', [])
source_regions: {
label: 'Regions',
type: 'text',
ngShow: "source && (source.value == 'rax' || source.value == 'ec2')",
ngShow: "source && (source.value == 'rax' || source.value == 'ec2' || source.value == 'gce')",
addRequired: false,
editRequired: false,
awMultiselect: 'source_region_choices',
@@ -155,4 +155,4 @@ angular.module('SourceFormDefinition', [])
related: { }
});
});

View File

@@ -1027,6 +1027,15 @@ function($compile, SchedulerInit, Rest, Wait, SetSchedulesInnerDialogSize, Sched
callback: 'choicesReadyGroup'
});
GetChoices({
scope: sources_scope,
url: GetBasePath('inventory_sources'),
field: 'source_regions',
variable: 'gce_regions',
choice_name: 'gce_region_choices',
callback: 'choicesReadyGroup'
});
Wait('start');
if (parent_scope.removeAddTreeRefreshed) {
@@ -1864,4 +1873,4 @@ function($compile, SchedulerInit, Rest, Wait, SetSchedulesInnerDialogSize, Sched
};
}
]);
]);