Commit 83cf84e9 authored by Tuan Tuan LE's avatar Tuan Tuan LE
Browse files

POC back to proposal list after review

parent 17fdac29
......@@ -5,12 +5,19 @@
.controller('MostReviewCreateController', MostReviewCreateController);
function MostReviewCreateController(
$state,
_,
asyncAction,
fileUploadService,
mostReviewApiClient,
proposal
) {
var self = this;
var CREATING_NOTIFICATION_MESSAGE = {
progressing: 'Đang gửi đánh giá ...',
success: 'Gửi đánh giá thành công',
failure: 'Gửi đánh giá thất bại'
};
init();
self.onAttachmentsSelect = onAttachmentsSelect;
......@@ -38,7 +45,12 @@
})
};
return mostReviewApiClient.createReview(reviewToCreate);
return asyncAction(CREATING_NOTIFICATION_MESSAGE, function() {
return mostReviewApiClient.createReview(reviewToCreate)
.then(function() {
$state.go('most.proposal');
});
});
}
function onAttachmentsSelect($attachments) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment