Skip to content
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

Conversation

hedudelgado
Copy link
Contributor

@hedudelgado hedudelgado force-pushed the implement-comments-in-admin-panel branch from 4030fb4 to a22b92c Compare November 29, 2016 17:00
Copy link
Contributor

@alexnoox alexnoox left a 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.')
)
Copy link
Contributor

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.')
# )
Copy link
Contributor

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.")
# )
Copy link
Contributor

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>
Copy link
Contributor

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.

@x4d3
Copy link
Contributor

x4d3 commented Dec 5, 2016

@alexnoox I am going to merge this in the feature branch, but I will address your comment and correct it in my next commit.
You will be able to review everything when you merge the feature branch.

@x4d3 x4d3 merged commit f8073f2 into maestrano:feature/app-rating Dec 5, 2016
@hedudelgado hedudelgado deleted the implement-comments-in-admin-panel branch June 14, 2017 09:17
aluqueGH pushed a commit to aluqueGH/mno-enterprise that referenced this pull request Jul 10, 2018
Fix bug on app description displaying HUGE images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants