Bug: Add account scoping in CTA (#754)

This commit is contained in:
Pranav Raj S
2020-04-23 12:21:45 +05:30
committed by GitHub
parent 645d53db1c
commit 7d41b7a5dc
4 changed files with 56 additions and 10 deletions

View File

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