logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git

shared_computed_object.js (440B)


  1. const SharedComputedObject = () => ({
  2. user () {
  3. return this.$store.state.users.currentUser
  4. },
  5. expertLevel () {
  6. return this.$store.getters.mergedConfig.expertLevel > 0
  7. },
  8. mergedConfig () {
  9. return this.$store.getters.mergedConfig
  10. },
  11. adminConfig () {
  12. return this.$store.state.adminSettings.config
  13. },
  14. adminDraft () {
  15. return this.$store.state.adminSettings.draft
  16. }
  17. })
  18. export default SharedComputedObject