]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: GuestStatusView: simplify HA state display
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 11 Oct 2017 12:10:24 +0000 (14:10 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 16 Oct 2017 12:14:19 +0000 (14:14 +0200)
simplify HA Information in VM/CT Summary panel.
Use the already translated  'HA State' instead of 'Managed by HA'
(which now becomes obsolete as it was the single appearance).
Simplify PVE.Utils.format_ha respectively to mach the new name,
as here is the only use of this function we have no side effects.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/Utils.js
www/manager6/panel/GuestStatusView.js

index 5a79ffb4434cda2ba6110c9a88796156ff83a53d..eaecc6f68a0db15647b08a363aef3e546f4fd88b 100644 (file)
@@ -852,11 +852,10 @@ Ext.define('PVE.Utils', { utilities: {
     },
 
     format_ha: function(value) {
-       var text = PVE.Utils.format_boolean(value.managed);
+       var text = PVE.Utils.noneText;
 
        if (value.managed) {
-           text += ', ' + PVE.Utils.stateText + ': ';
-           text += value.state || PVE.Utils.noneText;
+           text = value.state || PVE.Utils.noneText;
 
            text += ', ' +  PVE.Utils.groupText + ': ';
            text += value.group || PVE.Utils.noneText;
index 5924059727df7545c3054a64892b63a56e5b35e4..264154371a3333700febcfa2c7044470cbb7ac60 100644 (file)
@@ -24,7 +24,7 @@ Ext.define('PVE.panel.GuestStatusView', {
        },
        {
            itemId: 'hamanaged',
-           title: gettext('Managed by HA'),
+           title: gettext('HA State'),
            printBar: false,
            textField: 'ha',
            renderer: PVE.Utils.format_ha