mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-27 10:50:10 +03:00
feature #4184: Add labels support to vdcs-tab
This commit is contained in:
parent
4d36810b63
commit
9412c94155
@ -110,6 +110,7 @@ tabs:
|
||||
- 5 # Hosts
|
||||
- 6 # VNets
|
||||
- 7 # Datastores
|
||||
#- 8 # Labels
|
||||
actions:
|
||||
Vdc.refresh: true
|
||||
Vdc.create_dialog: true
|
||||
|
@ -110,6 +110,7 @@ tabs:
|
||||
- 5 # Hosts
|
||||
- 6 # VNets
|
||||
- 7 # Datastores
|
||||
#- 8 # Labels
|
||||
actions:
|
||||
Vdc.refresh: true
|
||||
Vdc.create_dialog: true
|
||||
|
@ -111,6 +111,7 @@ tabs:
|
||||
- 5 # Hosts
|
||||
- 6 # VNets
|
||||
- 7 # Datastores
|
||||
#- 8 # Labels
|
||||
actions:
|
||||
Vdc.refresh: true
|
||||
Vdc.create_dialog: true
|
||||
|
@ -22,6 +22,7 @@ define(function(require) {
|
||||
var TabDataTable = require('utils/tab-datatable');
|
||||
var Config = require('sunstone-config');
|
||||
var Locale = require('utils/locale');
|
||||
var LabelsUtils = require('utils/labels/utils');
|
||||
|
||||
/*
|
||||
CONSTANTS
|
||||
@ -30,6 +31,8 @@ define(function(require) {
|
||||
var RESOURCE = "Vdc";
|
||||
var XML_ROOT = "VDC";
|
||||
var TAB_NAME = require('./tabId');
|
||||
var LABELS_COLUMN = 8;
|
||||
var TEMPLATE_ATTR = 'TEMPLATE';
|
||||
|
||||
var Utils = require('./utils/common');
|
||||
var VDC_ALL_RESOURCES = Utils.VDC_ALL_RESOURCES;
|
||||
@ -44,6 +47,7 @@ define(function(require) {
|
||||
this.dataTableId = dataTableId;
|
||||
this.resource = RESOURCE;
|
||||
this.xmlRoot = XML_ROOT;
|
||||
this.labelsColumn = LABELS_COLUMN;
|
||||
|
||||
this.dataTableOptions = {
|
||||
"bAutoWidth": false,
|
||||
@ -64,7 +68,8 @@ define(function(require) {
|
||||
Locale.tr("Clusters"),
|
||||
Locale.tr("Hosts"),
|
||||
Locale.tr("VNets"),
|
||||
Locale.tr("Datastores")
|
||||
Locale.tr("Datastores"),
|
||||
Locale.tr("Labels")
|
||||
];
|
||||
|
||||
this.selectOptions = {
|
||||
@ -117,7 +122,8 @@ define(function(require) {
|
||||
_lengthOf(element.CLUSTERS.CLUSTER, "CLUSTER"),
|
||||
_lengthOf(element.HOSTS.HOST, "HOST"),
|
||||
_lengthOf(element.VNETS.VNET, "VNET"),
|
||||
_lengthOf(element.DATASTORES.DATASTORE, "DATASTORE")
|
||||
_lengthOf(element.DATASTORES.DATASTORE, "DATASTORE"),
|
||||
(LabelsUtils.labelsStr(element[TEMPLATE_ATTR])||'')
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user