chatwoot/chatwoot

View on GitHub
app/javascript/dashboard/mixins/account.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { mapGetters } from 'vuex';

export default {
  computed: {
    ...mapGetters({
      accountId: 'getCurrentAccountId',
    }),
  },
  methods: {
    addAccountScoping(url) {
      return `/app/accounts/${this.accountId}/${url}`;
    },
  },
};