Add queued checking for upload
This commit is contained in:
parent
ddcabd3d9c
commit
39865ef592
2 changed files with 3 additions and 4 deletions
|
@ -19,7 +19,6 @@ mainApp.controller('editImageCtrl', ['$scope', 'Image', 'Loading', 'Identity', '
|
||||||
});
|
});
|
||||||
$scope.data = {};
|
$scope.data = {};
|
||||||
|
|
||||||
|
|
||||||
$scope.applyEdition = function (id) {
|
$scope.applyEdition = function (id) {
|
||||||
Image.updateImage($scope.data, function () {
|
Image.updateImage($scope.data, function () {
|
||||||
$rootScope.$broadcast("updateImageEvent");
|
$rootScope.$broadcast("updateImageEvent");
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
<form action="../server/index.php" method="post">
|
<form action="../server/index.php" method="post" ng-if='image.status == "queued"'>
|
||||||
<input type="hidden" name="task" value="image" />
|
<input type="hidden" name="task" value="image" />
|
||||||
<input type="hidden" name="token" value="{{ getToken()}}" />
|
<input type="hidden" name="token" value="{{ getToken()}}" />
|
||||||
<input type="hidden" name="action" value="uploadImage" />
|
<input type="hidden" name="action" value="uploadImage" />
|
||||||
|
|
Loading…
Add table
Reference in a new issue