appdata: cannot use cifs or sshfs

Fixes #827
This commit is contained in:
Girish Ramakrishnan
2023-07-11 20:52:46 +05:30
parent 1bf91413c4
commit 0ab72f5900
4 changed files with 8 additions and 2 deletions
+2
View File
@@ -973,6 +973,7 @@
<p ng-bind-html="'app.storage.appdata.description' | tr:{ storagePath: ('/home/yellowtent/appsdata/' + app.id) }"></p>
<form role="form" name="storageDataDirForm" ng-submit="storage.submitDataDir()" autocomplete="off">
<select class="form-control" ng-model="storage.location" ng-options="location.displayName for location in storage.locationOptions track by location.id"></select>
<p class="text-warning" ng-show="storage.location.type === 'volume' && storage.location.mountType === 'mountpoint'" ng-bind-html="'app.storage.appdata.mountTypeWarning' | tr"></p>
<br/>
@@ -985,6 +986,7 @@
<input class="ng-hide" type="submit" ng-disabled="!storageDataDirForm.$dirty || storageDataDirForm.$invalid || storage.busyDataDir || app.error || app.taskId"/>
</form>
</div>
</div>
<div class="row">
<div class="col-md-12 text-right">
+1 -1
View File
@@ -613,7 +613,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
];
$scope.volumes.forEach(function (volume) {
$scope.storage.locationOptions.push({ id: volume.id, type: 'volume', value: volume.id, displayName: 'Volume - ' + volume.name });
$scope.storage.locationOptions.push({ id: volume.id, type: 'volume', value: volume.id, displayName: 'Volume - ' + volume.name, mountType: volume.mountType });
});
$scope.storage.location = $scope.storage.locationOptions.find(function (l) { return l.id === (app.storageVolumeId || 'default'); });