Make volume read-only checkbox a dropdown

This commit is contained in:
Johannes Zellner
2022-11-12 20:49:19 +01:00
parent df4b31c024
commit fa43807eee
3 changed files with 13 additions and 5 deletions

View File

@@ -618,7 +618,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
app.mounts.forEach(function (mount) { // { volumeId, readOnly }
var volume = $scope.volumes.find(function (v) { return v.id === mount.volumeId; });
$scope.storage.mounts.push({ volume: volume, readOnly: mount.readOnly });
$scope.storage.mounts.push({ volume: volume, readOnly: mount.readOnly ? 'true' : 'false' });
});
},
@@ -669,7 +669,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
var data = [];
$scope.storage.mounts.forEach(function (mount) {
data.push({ volumeId: mount.volume.id, readOnly: mount.readOnly });
data.push({ volumeId: mount.volume.id, readOnly: mount.readOnly === 'true' });
});
Client.configureApp($scope.app.id, 'mounts', { mounts: data }, function (error) {