Bug: Add account scoping in CTA (#754)
This commit is contained in:
14
app/javascript/dashboard/mixins/account.js
Normal file
14
app/javascript/dashboard/mixins/account.js
Normal 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}`;
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user