Commit 1371a613 authored by Tuan Tuan LE's avatar Tuan Tuan LE

Merge branch 'POC' into 'master'

POC back to proposal list after review

See merge request !22
parents 17fdac29 83cf84e9
......@@ -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