From 99ba88ae2f7b2b8c3b2658a7a6c9be722ca58094 Mon Sep 17 00:00:00 2001 From: Jeremy Wharton Date: Mon, 9 Oct 2023 00:07:20 -0500 Subject: [PATCH] web/satellite/vuetify-poc: allow adding coupons This change allows users to apply coupon codes via the billing page's overview section. Resolves #6393 Change-Id: I6f973f5293362efa8cd76149dc1b43468b49b2c9 --- .../dialogs/ApplyCouponCodeDialog.vue | 163 ++++++++++++++++++ .../vuetify-poc/src/views/Billing.vue | 83 ++++----- 2 files changed, 200 insertions(+), 46 deletions(-) create mode 100644 web/satellite/vuetify-poc/src/components/dialogs/ApplyCouponCodeDialog.vue diff --git a/web/satellite/vuetify-poc/src/components/dialogs/ApplyCouponCodeDialog.vue b/web/satellite/vuetify-poc/src/components/dialogs/ApplyCouponCodeDialog.vue new file mode 100644 index 000000000..85c9b06fc --- /dev/null +++ b/web/satellite/vuetify-poc/src/components/dialogs/ApplyCouponCodeDialog.vue @@ -0,0 +1,163 @@ +// Copyright (C) 2023 Storj Labs, Inc. +// See LICENSE for copying information. + + + + diff --git a/web/satellite/vuetify-poc/src/views/Billing.vue b/web/satellite/vuetify-poc/src/views/Billing.vue index 9d66532c1..b31c41759 100644 --- a/web/satellite/vuetify-poc/src/views/Billing.vue +++ b/web/satellite/vuetify-poc/src/views/Billing.vue @@ -68,7 +68,9 @@ {{ formattedTokenBalance }} - + Add STORJ Tokens + + Add STORJ Tokens + @@ -98,26 +100,45 @@ > {{ couponDiscount }} + - + Add Coupon + + + Add Coupon + -
- -
- + No Coupon + - + Apply New Coupon + + + Apply New Coupon +
@@ -163,7 +184,7 @@

You can add personal or company info, billing email, and VAT.

- + Add Billing Information + Add Billing Information @@ -171,6 +192,8 @@ + +