mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-7816: UI > Global Settings > add "Baremetal Rack Configuration" section.
This commit is contained in:
parent
6b5c874fe9
commit
0761d2dda8
@ -234,7 +234,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
baremetalRct: {
|
||||
type: 'select',
|
||||
title: 'Baremetal Rack Configuration',
|
||||
@ -303,9 +303,71 @@
|
||||
poll: pollAsyncJobResult
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
detailView: {
|
||||
name: "details",
|
||||
actions: {
|
||||
remove: {
|
||||
label: 'Delete Baremetal Rack Configuration',
|
||||
messages: {
|
||||
confirm: function(args) {
|
||||
return 'Please confirm that you want to delete Baremetal Rack Configuration.';
|
||||
},
|
||||
notification: function(args) {
|
||||
return 'Delete Baremetal Rack Configuration';
|
||||
}
|
||||
},
|
||||
action: function(args) {
|
||||
var data = {
|
||||
id: args.context.baremetalRct[0].id
|
||||
};
|
||||
$.ajax({
|
||||
url: createURL('deleteBaremetalRct'),
|
||||
data: data,
|
||||
success: function(json) {
|
||||
var jid = json.deletebaremetalrctresponse.jobid;
|
||||
args.response.success({
|
||||
_custom: {
|
||||
jobId: jid
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
notification: {
|
||||
poll: pollAsyncJobResult
|
||||
}
|
||||
}
|
||||
},
|
||||
tabs: {
|
||||
details: {
|
||||
title: 'label.details',
|
||||
fields: [{
|
||||
id: {
|
||||
label: 'label.id'
|
||||
},
|
||||
url: {
|
||||
label: 'label.url'
|
||||
}
|
||||
}],
|
||||
dataProvider: function(args) {
|
||||
var data = {
|
||||
id: args.context.baremetalRct[0].id
|
||||
};
|
||||
$.ajax({
|
||||
url: createURL("listBaremetalRct"),
|
||||
data: data,
|
||||
success: function(json) {
|
||||
args.response.success({ data: json.listbaremetalrctresponse.baremetalrct[0] });
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
hypervisorCapabilities: {
|
||||
type: 'select',
|
||||
title: 'label.hypervisor.capabilities',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user