[pve-devel] [PATCH manager 2/3] GUI: LXC Template Summary: display privileged status and os type
Matthias Heiserer
m.heiserer at proxmox.com
Fri Dec 2 14:50:17 CET 2022
Signed-off-by: Matthias Heiserer <m.heiserer at proxmox.com>
---
www/manager6/panel/TemplateStatusView.js | 35 ++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/www/manager6/panel/TemplateStatusView.js b/www/manager6/panel/TemplateStatusView.js
index 4e17a41c..5543f4fe 100644
--- a/www/manager6/panel/TemplateStatusView.js
+++ b/www/manager6/panel/TemplateStatusView.js
@@ -1,12 +1,28 @@
Ext.define('PVE.panel.TemplateStatusView', {
extend: 'Proxmox.panel.StatusView',
alias: 'widget.pveTemplateStatusView',
+ mixins: ['Proxmox.Mixin.CBind'],
+
+ cbindData: function(initialConfig) {
+ var me = this;
+ return {
+ isQemu: me.pveSelNode.data.type === 'qemu',
+ };
+ },
layout: {
type: 'vbox',
align: 'stretch',
},
+ controller: {
+ xclass: 'Ext.app.ViewController',
+
+ init: function(view) {
+ view.applyLogos(this);
+ },
+ },
+
defaults: {
xtype: 'pmxInfoWidget',
printBar: false,
@@ -30,6 +46,25 @@ Ext.define('PVE.panel.TemplateStatusView', {
iconCls: 'fa fa-fw fa-building',
title: gettext('Node'),
},
+ {
+ title: gettext('OS type'),
+ printBar: false,
+ reference: 'ostype',
+ cbind: {
+ hidden: '{isQemu}',
+ disabled: '{isQemu}',
+ },
+ },
+ {
+ title: gettext('Privileged'),
+ printBar: false,
+ reference: 'privileged',
+ cbind: {
+ hidden: '{isQemu}',
+ disabled: '{isQemu}',
+ },
+ iconCls: 'fa fa-user-circle-o fa-fw',
+ },
{
xtype: 'box',
height: 20,
--
2.30.2
More information about the pve-devel
mailing list