-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement comments management in Admin Panel #161
Implement comments management in Admin Panel #161
Conversation
4030fb4
to
a22b92c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned on this feature JIRA card, you should reuse the "staff" page.It uses mno-pagination component, smart-table (field order and sort) and inline edition (select). Also it is an angular 1.5 component and not a directive.
# Display an error | ||
$log.error('Error while fetching ratings', error) | ||
toastr.error('An error occured while fetching the ratings.') | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to catch the errors, you can use catch(errorCallback)
:
# GET List /mnoe/jpi/v1/admin/app_user_ratings
@list = () ->
MnoeAdminApiSvc.all('app_user_ratings').getList().catch(
(error) ->
# Log and display an error
$log.error('Error while fetching ratings', error)
toastr.error('An error occured while fetching the ratings.')
)
# # Display an error | ||
# $log.error('Error while deleting rating', error) | ||
# toastr.error('An error occured while deleting the rating.') | ||
# ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove dead/commented code
# scope.remove = (rating) -> | ||
# MnoeRatings.removeRating(rating.id).then( -> | ||
# toastr.success("The #{rating.user_name}\'s rating has been successfully removed.") | ||
# ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove dead/commented code
<div class="row"> | ||
<div class="col-xs-8 col-lg-offset-1 top-buffer-1"> | ||
</div> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is nothing in this row, you can remove it.
@alexnoox I am going to merge this in the feature branch, but I will address your comment and correct it in my next commit. |
Fix bug on app description displaying HUGE images
@alexnoox