Correct bug
This commit is contained in:
parent
a845b20ee9
commit
ef3054bb8f
2 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ mainApp.controller('editImageCtrl', ['$scope', 'Image', 'Loading', 'Identity', '
|
||||||
$scope.data.visibility = "public";
|
$scope.data.visibility = "public";
|
||||||
$scope.data.protected = false;
|
$scope.data.protected = false;
|
||||||
|
|
||||||
$scope.updateImage = function (image) {
|
$scope.applyEdition = function (image) {
|
||||||
image.visibility = $scope.data.visibility;
|
image.visibility = $scope.data.visibility;
|
||||||
image.protected = $scope.data.protected;
|
image.protected = $scope.data.protected;
|
||||||
Image.updateImage(image, function(){});
|
Image.updateImage(image, function(){});
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label col-sm-2">Name</label>
|
<label class="control-label col-sm-2">Name</label>
|
||||||
<div class="col-sm-20">
|
<div class="col-sm-20">
|
||||||
<p class="form-control-static">{{ image.name}}</p>
|
<input type="text" value="{{ image.name}}" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<!--<a href="#" data-dismiss="modal" class="btn btn-default">Close</a>-->
|
<!--<a href="#" data-dismiss="modal" class="btn btn-default">Close</a>-->
|
||||||
|
|
||||||
<a class="btn btn-lg btn-primary btn-block" ng-click="updateImage(image)" >Apply</a>
|
<a class="btn btn-lg btn-primary btn-block" ng-click="applyEdition(image)" >Apply</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue