Skip to content
Snippets Groups Projects
Commit a1d7f4b8 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] fix add picture using device camera (avoid error message)

parent a20fcf2d
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,6 @@ function ESPicturesEditController($scope, UIUtils, $q, Device) {
src: "data:image/png;base64," + imageData,
isnew: true // use to prevent visibility hidden (if animation)
});
$scope.$apply();
})
.catch(UIUtils.onError('ERROR.TAKE_PICTURE_FAILED'));
};
......
......@@ -358,7 +358,6 @@ function ESGroupEditController($scope, esGroup, UIUtils, $state, $q, Device,
Device.camera.getPicture()
.then(function(imageData) {
$scope.pictures.push({src: "data:image/png;base64," + imageData});
$scope.$apply();
})
.catch(UIUtils.onError('ERROR.TAKE_PICTURE_FAILED'));
};
......
......@@ -669,7 +669,6 @@ function ESRegistryRecordEditController($scope, esRegistry, UIUtils, $state, $q,
Device.camera.getPicture()
.then(function(imageData) {
$scope.pictures.push({src: "data:image/png;base64," + imageData});
$scope.$apply();
})
.catch(UIUtils.onError('ERROR.TAKE_PICTURE_FAILED'));
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment