From 09b438850eb6f50a64101766e18d32c3d38e9e26 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 14 Dec 2023 13:01:59 +0100 Subject: [PATCH] Show disk content label in usage bar tooltip --- dashboard/src/views/system.html | 8 ++++---- dashboard/src/views/system.js | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dashboard/src/views/system.html b/dashboard/src/views/system.html index 2a8494598..c25b8f965 100644 --- a/dashboard/src/views/system.html +++ b/dashboard/src/views/system.html @@ -122,13 +122,13 @@
  {{ content.path }} (Old Backups) - {{ content.label || content.id }} - {{ content.id }} + {{ content.label }} + {{ content.label }} - {{ content.app.label || content.app.fqdn }} + {{ content.label }} {{ 'system.diskUsage.uninstalledApp' | tr }} - {{ content.volume.name }} + {{ content.label }} {{ content.usage | prettyDiskSize }}
diff --git a/dashboard/src/views/system.js b/dashboard/src/views/system.js index e4c5c76ab..ac9bc5738 100644 --- a/dashboard/src/views/system.js +++ b/dashboard/src/views/system.js @@ -96,11 +96,16 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati if (content.type === 'app') { content.app = Client.getInstalledAppsByAppId()[content.id]; + content.label = content.app.label || content.app.fqdn; if (!content.app) content.uninstalled = true; } else if (content.type === 'volume') { content.volume = $scope.volumesById[content.id]; + content.label = content.volume.name; } + // ensure a label for ui + content.label = content.label || content.id; + usageOther -= content.usage; });