Chatwoot/app/javascript/dashboard/mixins/account.js
2020-04-23 12:21:45 +05:30

14 lines
253 B
JavaScript

import auth from '../api/auth';
export default {
computed: {
accountId() {
return auth.getCurrentUser().account_id;
},
},
methods: {
addAccountScoping(url) {
return `/app/accounts/${this.accountId}/${url}`;
},
},
};