williamcruzme / vue-gates

🔒 A Vue.js & Nuxt.js plugin that allows you to use roles and permissions in your components or DOM elements, also compatible as middleware and methods.
https://williamcruzme.github.io/vue-gates/
MIT License
263 stars 31 forks source link

Live update roles #31

Open PetzJohannes opened 3 years ago

PetzJohannes commented 3 years ago

First of all, great package! Very easy to use and is flexible and not overloaded.

One simple question:

Is there a way to update the roles / permissions and make use of the vue reactivity?

At the moment I am using this.$forceUpdate() after updating my permissions but this seams not the correct way.

Thank you. Cheers

williamcruzme commented 3 years ago

I'll research what you can do! Thank you! 🙌🏻

davidreyg commented 3 years ago

First of all, great package! Very easy to use and is flexible and not overloaded.

One simple question:

Is there a way to update the roles / permissions and make use of the vue reactivity?

At the moment I am using this.$forceUpdate() after updating my permissions but this seams not the correct way.

Thank you. Cheers

Hey can u share a gist or a repo how u manage that pls?

davidreyg commented 3 years ago

I'll research what you can do! Thank you! 🙌🏻

Great package I'm using it with laravel and it's really easy and simple to use. Did you find something about the question above? It would be great