cloudStack 3.0 new UI - zone chart - NetScaler - add provider action filter.

This commit is contained in:
Jessica Wang 2011-11-22 14:32:23 -08:00
parent f111d8377e
commit 7a3e0e405e

View File

@ -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: {