mirror of https://github.com/apache/cloudstack.git
14 lines
341 B
JavaScript
14 lines
341 B
JavaScript
(function (cloudStack) {
|
|
cloudStack.plugins.testPlugin = function(plugin) {
|
|
plugin.ui.addSection({
|
|
id: 'testPlugin',
|
|
title: 'TestPlugin',
|
|
preFilter: function(args) {
|
|
return isAdmin();
|
|
},
|
|
show: function() {
|
|
return $('<div>').html('Test plugin section');
|
|
}
|
|
});
|
|
};
|
|
}(cloudStack)); |