Skip to content

Catch error viewsLoad() #75

@SebastianKempf

Description

@SebastianKempf

I implemented jDrupal in a Vue.js Application that I build with webpack and so far it works great. Now, I run into a problem and the solution might be easy but I did not find anything in the documentation or online: I am loading a view with jDrupal.viewsLoad() and it works fine as long as the User has permission to access the view. If he does not have permission nothing is displayed and an “Uncaught (in promise)” error ist log in the console. I was wondering how I can catch this error and eventually display an “Access Denied” message. Usually javascript Promises have a catch function but that does not seem to be the case with jDrupal.viewsLoad() or I am missing something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions