refactor: Remove redundant accounts/get (#8056)
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
@@ -220,14 +220,11 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
if (!this.id) {
|
||||
this.initializeAccount();
|
||||
}
|
||||
this.initializeAccount();
|
||||
},
|
||||
methods: {
|
||||
async initializeAccount() {
|
||||
try {
|
||||
await this.$store.dispatch('accounts/get');
|
||||
const {
|
||||
name,
|
||||
locale,
|
||||
|
||||
@@ -72,8 +72,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async fetchAccountDetails() {
|
||||
await this.$store.dispatch('accounts/get');
|
||||
|
||||
if (!this.hasABillingPlan) {
|
||||
this.$store.dispatch('accounts/subscription');
|
||||
}
|
||||
|
||||
@@ -70,7 +70,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async initializeEnabledFeatures() {
|
||||
await this.$store.dispatch('accounts/get', this.accountId);
|
||||
this.enabledFeatures = this.account.features;
|
||||
},
|
||||
initChannelAuth(channel) {
|
||||
|
||||
Reference in New Issue
Block a user