mirror of https://github.com/apache/cloudstack.git
Add block to show/hide tier select
-- Hidden by default, needs real conditional code
This commit is contained in:
parent
9f093817f3
commit
262bbbe800
|
|
@ -1236,12 +1236,20 @@
|
|||
custom: cloudStack.uiCustom.enableStaticNAT({
|
||||
// VPC
|
||||
tierSelect: function(args) {
|
||||
args.response.success({
|
||||
data: [
|
||||
{ id: '1', description: 'VPC 1' },
|
||||
{ id: '2', description: 'VPC 2' }
|
||||
]
|
||||
});
|
||||
args.$tierSelect.hide(); // Hidden by default
|
||||
|
||||
// Determine if tiers are supported here
|
||||
var enableTiers = false;
|
||||
|
||||
if (enableTiers) {
|
||||
args.$tierSelect.show();
|
||||
args.response.success({
|
||||
data: [
|
||||
{ id: '1', description: 'VPC 1' },
|
||||
{ id: '2', description: 'VPC 2' }
|
||||
]
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
listView: $.extend(true, {}, cloudStack.sections.instances, {
|
||||
|
|
|
|||
|
|
@ -137,6 +137,7 @@
|
|||
// Get tier data
|
||||
tierSelect({
|
||||
context: context,
|
||||
$tierSelect: $tierSelect,
|
||||
response: {
|
||||
success: function(args) {
|
||||
var data = args.data;
|
||||
|
|
|
|||
Loading…
Reference in New Issue