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() {
|
mounted() {
|
||||||
if (!this.id) {
|
this.initializeAccount();
|
||||||
this.initializeAccount();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async initializeAccount() {
|
async initializeAccount() {
|
||||||
try {
|
try {
|
||||||
await this.$store.dispatch('accounts/get');
|
|
||||||
const {
|
const {
|
||||||
name,
|
name,
|
||||||
locale,
|
locale,
|
||||||
|
|||||||
@@ -72,8 +72,6 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async fetchAccountDetails() {
|
async fetchAccountDetails() {
|
||||||
await this.$store.dispatch('accounts/get');
|
|
||||||
|
|
||||||
if (!this.hasABillingPlan) {
|
if (!this.hasABillingPlan) {
|
||||||
this.$store.dispatch('accounts/subscription');
|
this.$store.dispatch('accounts/subscription');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,7 +70,6 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async initializeEnabledFeatures() {
|
async initializeEnabledFeatures() {
|
||||||
await this.$store.dispatch('accounts/get', this.accountId);
|
|
||||||
this.enabledFeatures = this.account.features;
|
this.enabledFeatures = this.account.features;
|
||||||
},
|
},
|
||||||
initChannelAuth(channel) {
|
initChannelAuth(channel) {
|
||||||
|
|||||||
Reference in New Issue
Block a user