mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
feature #3748: Add host vms panel
This commit is contained in:
1 parent
8e6e911ac4
commit
eedd8d5eff
3 files changed
+57
-1
No files matched your search
@@ -14,7 +14,8 @@ define(function(require) {
|
||||
|
||||
var _panels = [
|
||||
require('./hosts-tab/panels/info'),
|
||||
require('./hosts-tab/panels/monitor')
|
||||
require('./hosts-tab/panels/monitor'),
|
||||
require('./hosts-tab/panels/vms')
|
||||
];
|
||||
|
||||
var Tab = {
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
define(function(require){
|
||||
/*
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
var Locale = require('utils/locale');
|
||||
// TODO var VMsTable = require('tabs/vms-tab/datatable');
|
||||
|
||||
/*
|
||||
CONSTANTS
|
||||
*/
|
||||
|
||||
var PANEL_ID = require('./vms/panelId');
|
||||
var IMAGES_TABLE_ID = PANEL_ID + "VMsTable"
|
||||
var RESOURCE = "Host"
|
||||
|
||||
/*
|
||||
CONSTRUCTOR
|
||||
*/
|
||||
|
||||
function Panel(info) {
|
||||
this.title = Locale.tr("VMs");
|
||||
this.icon = "fa-cloud";
|
||||
|
||||
this.element = info[RESOURCE.toUpperCase()];
|
||||
// TODO this.vmsDataTable = new VMsTable(IMAGES_TABLE_ID, {info: true});
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
Panel.PANEL_ID = PANEL_ID;
|
||||
Panel.prototype.html = _html;
|
||||
Panel.prototype.setup = _setup;
|
||||
|
||||
return Panel;
|
||||
|
||||
/*
|
||||
FUNCTION DEFINITIONS
|
||||
*/
|
||||
|
||||
function _html() {
|
||||
return ''// TODO this.vmsDataTable.dataTableHTML;
|
||||
}
|
||||
|
||||
function _setup(context) {
|
||||
// TODO this.vmsDataTable.initialize();
|
||||
// TODO this.vmsDataTable.filter(this.element.NAME, VMsTable.COLUMN_IDS.DATASTORE);
|
||||
// TODO this.vmsDataTable.list();
|
||||
|
||||
return false;
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,3 @@
|
||||
define(function(require){
|
||||
return 'host_vms_tab';
|
||||
})
|
||||
Reference in new issue
Block a user