You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: