mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
cloudStack 3.0 new UI - zone chart - NetScaler - add provider action filter.
This commit is contained in:
parent
f111d8377e
commit
7a3e0e405e
@ -936,6 +936,45 @@
|
||||
fields: {
|
||||
ipaddress: { label: 'IP Address' },
|
||||
lbdevicestate: { label: 'Status' }
|
||||
},
|
||||
providerActionFilter: function(args) {
|
||||
var allowedActions = [];
|
||||
allowedActions.push("enable");
|
||||
allowedActions.push("disable");
|
||||
allowedActions.push("shutdown");
|
||||
return allowedActions;
|
||||
},
|
||||
providerActions: {
|
||||
enable: {
|
||||
label: 'Enable',
|
||||
action: function(args) {
|
||||
setTimeout(args.response.success, 100);
|
||||
},
|
||||
messages: {
|
||||
notification: function() { return 'Enable Netscaler provider'; }
|
||||
},
|
||||
notification: { poll: testData.notifications.testPoll }
|
||||
},
|
||||
disable: {
|
||||
label: 'Disable',
|
||||
action: function(args) {
|
||||
setTimeout(args.response.success, 100);
|
||||
},
|
||||
messages: {
|
||||
notification: function() { return 'Disabled Netscaler provider'; }
|
||||
},
|
||||
notification: { poll: testData.notifications.testPoll }
|
||||
},
|
||||
shutdown: {
|
||||
label: 'Shutdown',
|
||||
action: function(args) {
|
||||
setTimeout(args.response.success, 100);
|
||||
},
|
||||
messages: {
|
||||
notification: function() { return 'Shutdown Netscaler provider'; }
|
||||
},
|
||||
notification: { poll: testData.notifications.testPoll }
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
add: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user