Skip to content

Commit 36ed93f

Browse files
author
Jessica Wang
committed
CLOUDSTACK-2880: UI - zone detail - add VMware DC action - replace URL field with vcenter field and make vcenter required.
1 parent 6202563 commit 36ed93f

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

‎ui/scripts/system.js‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5388,9 +5388,9 @@
53885388
label: 'label.name',
53895389
validation: { required: true }
53905390
},
5391-
url: {
5392-
label: 'label.url',
5393-
validation: { required: false }
5391+
vcenter: {
5392+
label: 'vcenter',
5393+
validation: { required: true }
53945394
},
53955395
username: {
53965396
label: 'label.username',
@@ -5406,14 +5406,10 @@
54065406
action: function(args) {
54075407
var data = {
54085408
zoneid: args.context.physicalResources[0].id,
5409-
name: args.data.name
5410-
};
5409+
name: args.data.name,
5410+
vcenter: args.data.vcenter
5411+
};
54115412

5412-
if(args.data.url != null && args.data.url.length > 0) {
5413-
$.extend(data, {
5414-
url: args.data.url
5415-
})
5416-
}
54175413
if(args.data.username != null && args.data.username.length > 0) {
54185414
$.extend(data, {
54195415
username: args.data.username

0 commit comments

Comments
 (0)