filemanager: show host path for volumes as root label
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user