metrics: work in progress list views

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2015-09-15 17:14:58 +05:30
parent 62bccb08d4
commit 992693b67e
1 changed files with 31 additions and 5 deletions

View File

@ -16,6 +16,20 @@
// under the License.
(function(cloudStack) {
cloudStack.sections.metrics = {
title: 'label.metrics',
listView: {
id: 'metrics',
fields: {
name: {
label: 'metrics'
}
},
hideSearchBar: true
}
};
// Cluster Metrics
cloudStack.sections.metrics.cluster = {
title: 'label.metrics',
listView: {
id: 'metrics',
@ -25,13 +39,25 @@
}
},
dataProvider: function(args) {
var data = {};
listViewDataProvider(args, data);
// TODO implement provider
console.log("Metris view dataprovider triggered");
console.log(args);
},
actions: {
// TODO implement refresh action
}
refreshMetric: {
label: 'label.refresh',
isHeader: true,
addRow: true,
action: {
custom: function (args) {
return function() {
return console.log("Cluster Refresh metrics");
};
}
}
}
},
hideSearchBar: true,
needsRefresh: true
}
};