Skip to content

Commit

Permalink
Merge branch 'proxmox:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
wy414012 authored Nov 14, 2024
2 parents c804da2 + b67c450 commit bb54afc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions www/manager6/tree/ResourceTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,15 @@ Ext.define('PVE.tree.ResourceTree', {
},

getToolTip: function(info) {
if (info.type === 'pool' || info.groupbyid !== undefined) {
return undefined;
let qtips = [];
if (info.qmpstatus || info.status) {
qtips.push(Ext.String.format(gettext('Status: {0}'), info.qmpstatus || info.status));
}

let qtips = [gettext('Status') + ': ' + (info.qmpstatus || info.status)];
if (info.lock) {
qtips.push(Ext.String.format(gettext('Config locked ({0})'), info.lock));
}
if (info.hastate !== 'unmanaged') {
qtips.push(gettext('HA State') + ": " + info.hastate);
qtips.push(Ext.String.format(gettext('HA State: {0}'), info.hastate));
}
if (info.type === 'storage') {
let usage = info.disk / info.maxdisk;
Expand All @@ -166,6 +165,10 @@ Ext.define('PVE.tree.ResourceTree', {
}
}

if (qtips.length === 0) {
return undefined;
}

let tip = qtips.join(', ');
info.tip = tip;
return tip;
Expand Down
1 change: 1 addition & 0 deletions www/mobile/WidgetToolkitUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ utilities: {

language_map: { //language map is sorted alphabetically by iso 639-1
ar: `العربية - ${gettext("Arabic")}`,
bg: `Български - ${gettext("Bulgarian")}`,
ca: `Català - ${gettext("Catalan")}`,
da: `Dansk - ${gettext("Danish")}`,
de: `Deutsch - ${gettext("German")}`,
Expand Down

0 comments on commit bb54afc

Please sign in to comment.