[pve-devel] [PATCH manager v7 13/14] ui: ResourceGrid: render tags
Dominik Csapak
d.csapak at proxmox.com
Tue Jun 21 11:20:11 CEST 2022
with the 'full' styling
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/data/ResourceStore.js | 3 +++
www/manager6/grid/ResourceGrid.js | 1 +
2 files changed, 4 insertions(+)
diff --git a/www/manager6/data/ResourceStore.js b/www/manager6/data/ResourceStore.js
index b18f7dd8..0bfe9259 100644
--- a/www/manager6/data/ResourceStore.js
+++ b/www/manager6/data/ResourceStore.js
@@ -295,6 +295,9 @@ Ext.define('PVE.data.ResourceStore', {
},
tags: {
header: gettext('Tags'),
+ renderer: (value) => {
+ return PVE.Utils.renderTags(value, PVE.Utils.tagOverrides);
+ },
type: 'string',
hidden: true,
sortable: true,
diff --git a/www/manager6/grid/ResourceGrid.js b/www/manager6/grid/ResourceGrid.js
index 29906a37..9376bcc2 100644
--- a/www/manager6/grid/ResourceGrid.js
+++ b/www/manager6/grid/ResourceGrid.js
@@ -7,6 +7,7 @@ Ext.define('PVE.grid.ResourceGrid', {
property: 'type',
direction: 'ASC',
},
+ userCls: 'proxmox-tags-full',
initComponent: function() {
let me = this;
--
2.30.2
More information about the pve-devel
mailing list