Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Sang D NGO
linagora.esn.most
Commits
83cf84e9
Commit
83cf84e9
authored
Apr 17, 2018
by
Tuan Tuan LE
⛅
Browse files
POC back to proposal list after review
parent
17fdac29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
frontend/app/review/create/most-review-create.controller.js
frontend/app/review/create/most-review-create.controller.js
+13
-1
No files found.
frontend/app/review/create/most-review-create.controller.js
View file @
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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment