Make filesystem header a link if it is an app

This commit is contained in:
Johannes Zellner
2021-09-27 21:18:22 +02:00
parent 6a28961dde
commit e1801b7a99
3 changed files with 14 additions and 1 deletions

View File

@@ -78,6 +78,7 @@ app.controller('FileManagerController', ['$scope', '$translate', '$timeout', 'Cl
$scope.sortProperty = 'fileName';
$scope.view = 'fileTree';
$scope.volumes = [];
$scope.applicationLink = '';
$scope.owners = [
{ name: 'cloudron', value: 1000 },
@@ -1041,6 +1042,7 @@ app.controller('FileManagerController', ['$scope', '$translate', '$timeout', 'Cl
case 'app':
$scope.title = result.label || result.fqdn;
$scope.rootDirLabel = '/app/data/';
$scope.applicationLink = 'https://' + result.fqdn;
break;
case 'volume':
$scope.title = result.name;