-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
Description
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.