Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
POC back to proposal list after review
· 83cf84e9
Tuan Tuan LE
authored
Apr 17, 2018
83cf84e9
Merge branch 'POC' into 'master'
· 1371a613
Tuan Tuan LE
authored
Apr 17, 2018
POC back to proposal list after review See merge request
!22
1371a613
Hide whitespace changes
Inline
Side-by-side
frontend/app/review/create/most-review-create.controller.js
View file @
1371a613
...
...
@@ -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
)
{
...
...