Skip to content

Commit 32ce3ac

Browse files
committed
refactor: remove BillingCard and related components from billing views for improved structure and maintainability
1 parent e43f7a9 commit 32ce3ac

File tree

10 files changed

+26
-2117
lines changed

10 files changed

+26
-2117
lines changed

src/components/billing/Card.vue

Lines changed: 0 additions & 738 deletions
This file was deleted.

src/components/billing/ModalAddCreditCard.vue

Lines changed: 0 additions & 515 deletions
This file was deleted.

src/router.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -432,12 +432,8 @@ const routes = [
432432
},
433433
},
434434
{
435-
path: '/orgs/:orgUuid/billing/plans',
436-
alias: [
437-
'/orgs/:orgUuid/billing/card',
438-
'/orgs/:orgUuid/billing/address',
439-
'/orgs/:orgUuid/billing/success',
440-
],
435+
path: '/orgs/:orgUuid/billing/card',
436+
alias: ['/orgs/:orgUuid/billing/address'],
441437
name: 'BillingPlans',
442438
component: BillingPlans,
443439
meta: {

src/store/billing/actions.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ export default {
3838
return orgs.removeCreditCard({ organizationUuid });
3939
},
4040

41-
changeOrganizationPlan(store, { organizationUuid, plan }) {
42-
return orgs.changeOrganizationPlan({ organizationUuid, plan });
43-
},
44-
4541
closeOrganizationPlan(store, { organizationUuid }) {
4642
return orgs.closeOrgPlan({ organizationUuid });
4743
},

src/views/billing/billing.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -751,11 +751,6 @@ export default {
751751
});
752752
},
753753
754-
openChangePlanModal() {
755-
this.$store.state.BillingSteps.flow = 'change-plan';
756-
this.$router.push(`/orgs/${this.currentOrg.uuid}/billing/plans`);
757-
},
758-
759754
openAddCreditCardModal() {
760755
this.$store.state.BillingSteps.flow = 'add-credit-card';
761756
this.$router.push(`/orgs/${this.currentOrg.uuid}/billing/card`);

0 commit comments

Comments
 (0)