Correct bug
This commit is contained in:
parent
4bac080418
commit
c5f4a11b12
3 changed files with 12 additions and 9 deletions
|
@ -9,15 +9,18 @@ mainApp.controller('editImageCtrl', ['$scope', 'Image', 'Loading', 'Identity', '
|
|||
$scope.image = image;
|
||||
$scope.data = {};
|
||||
$scope.data.id = image.id;
|
||||
if (image.protected) {
|
||||
$scope.data.protected = "true";
|
||||
|
||||
} else {
|
||||
$scope.data.protected = "false";
|
||||
}
|
||||
$scope.data.name = image.name;
|
||||
$scope.data.visibility = image.visibility;
|
||||
$scope.data.protected = image.protected;
|
||||
|
||||
$scope.axioms = axioms;
|
||||
$('#editImageModal').modal('show');
|
||||
});
|
||||
$scope.data = {};
|
||||
|
||||
$scope.applyEdition = function (id) {
|
||||
Image.updateImage($scope.data, function () {
|
||||
|
|
|
@ -5,7 +5,7 @@ mainApp.factory('Image', ['$http', 'Identity', function ($http, Identity) {
|
|||
var data = {};
|
||||
data.images = null; // Images
|
||||
data.axioms = {};
|
||||
data.axioms.protected = [true, false];
|
||||
data.axioms.protected = ["false", "true"];
|
||||
data.axioms.visibility = ["public", "private"];
|
||||
/**
|
||||
* Parse uploadImage anwser
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue