directus / v8-archive

Directus Database API — Wraps Custom SQL Databases with a REST/GraphQL API
https://docs.directus.io/api/reference.html
505 stars 204 forks source link

Question || Interface and global settings #528

Closed lookingdown closed 5 years ago

lookingdown commented 5 years ago

Thanks for sharing this amazing product..

I need to access global settings values from interfaces, "wysiwyg" in my case as I added image insert and upload and serve locally or provider.

directus_settings/ files / serve_local a bolean default 1 for example. and other keys for embed and image processing providers.

Is there a a way to access the directus settings this already in place from vue ? or what is the recommended method..

Cheers

Version Info

rijkvanzanten commented 5 years ago

The settings are in the Vuex store. They can be accessed through this.$store.state.settings I believe. (Double check that exact name using the dev tools, I'm on mobile and haven't confirmed this)

lookingdown commented 5 years ago

Fantastic.. Will check it out tomorrow.. Thanks

lookingdown commented 5 years ago

They can be accessed through: this.$store.state.settings is correct Thanks again..