filemanager: show host path for volumes as root label

This commit is contained in:
Girish Ramakrishnan
2020-12-20 12:58:09 -08:00
parent 0bed8c89f6
commit dd3522a34c
2 changed files with 3 additions and 1 deletions

View File

@@ -69,6 +69,7 @@ app.controller('FileManagerController', ['$scope', '$translate', '$timeout', 'Cl
$scope.cwdParts = [];
$scope.id = search.appId || search.volumeId;
$scope.type = search.appId ? 'app' : 'volume';
$scope.rootDirLabel = '';
$scope.title = '';
$scope.entries = [];
$scope.dropToBody = false;
@@ -759,6 +760,7 @@ app.controller('FileManagerController', ['$scope', '$translate', '$timeout', 'Cl
fetchVolumesInfo(result.mounts || []);
$scope.title = $scope.type === 'app' ? (result.label || result.fqdn) : result.name;
$scope.rootDirLabel = $scope.type === 'app' ? '/app/data/' : result.hostPath;
window.document.title = $scope.title + ' - ' + $translate.instant('filemanager.title');
// now mark the Client to be ready