-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
web/satellite: ui changes to registration and billing pages to enable…
… user to add promo codes to their account - add Credit History table to billing acount page and set up ui for a user adding promo codes - implement promo codes ui in registration form - add feature flag to handle if coupon code ui should be rendered Change-Id: I9fdeef7cffc7901958d3f9be335e1115b2471a2e
- Loading branch information
Malcolm Bouzi
committed
Mar 26, 2021
1 parent
9bc2a9a
commit 527b7eb
Showing
30 changed files
with
647 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,4 +141,4 @@ export default class CreateAccessGrant extends Vue { | |
padding: 350px 0 20px 0; | ||
} | ||
} | ||
</style> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 108 additions & 0 deletions
108
web/satellite/src/components/account/billing/freeCredits/AddCouponCode.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
// Copyright (C) 2021 Storj Labs, Inc. | ||
// See LICENSE for copying information. | ||
|
||
<template> | ||
<div class="add-coupon__wrapper"> | ||
<div class="add-coupon__modal"> | ||
<div class="add-coupon__container"> | ||
<div class="add-coupon__header-wrapper"> | ||
<p class="add-coupon__header">Add Coupon Code</p> | ||
<CloseIcon | ||
class="add-coupon__close-icon" | ||
@click="onCloseClick" | ||
/> | ||
</div> | ||
<AddCouponCodeInput /> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Prop, Vue } from 'vue-property-decorator'; | ||
import AddCouponCodeInput from '@/components/common/AddCouponCodeInput.vue'; | ||
import HeaderlessInput from '@/components/common/HeaderlessInput.vue'; | ||
import ValidationMessage from '@/components/common/ValidationMessage.vue'; | ||
import CloseIcon from '@/../static/images/common/closeCross.svg'; | ||
import CheckIcon from '@/../static/images/common/success-check.svg'; | ||
import { RouteConfig } from '@/router'; | ||
@Component({ | ||
components: { | ||
HeaderlessInput, | ||
CloseIcon, | ||
CheckIcon, | ||
AddCouponCodeInput, | ||
}, | ||
}) | ||
export default class AddCouponCode extends Vue { | ||
@Prop({default: false}) | ||
protected readonly success: boolean; | ||
@Prop({default: false}) | ||
protected readonly error: boolean; | ||
/** | ||
* Closes add coupon modal. | ||
*/ | ||
public onCloseClick(): void { | ||
this.$router.push(RouteConfig.Account.with(RouteConfig.Billing).path); | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
.add-coupon { | ||
&__wrapper { | ||
background: #1b2533c7 75%; | ||
position: fixed; | ||
width: 100%; | ||
height: 100%; | ||
top: 0; | ||
left: 0; | ||
} | ||
&__modal { | ||
width: 741px; | ||
height: 298px; | ||
background: #fff; | ||
border-radius: 8px; | ||
margin: 15% auto; | ||
position: relative; | ||
} | ||
&__container { | ||
width: 85%; | ||
padding-top: 10px; | ||
margin: 0 auto; | ||
} | ||
&__header-wrapper { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
&__header { | ||
font-family: 'font_bold', sans-serif; | ||
font-style: normal; | ||
font-weight: bold; | ||
font-size: 16px; | ||
line-height: 148.31%; | ||
margin: 15px 0; | ||
display: inline-block; | ||
} | ||
&__close-icon { | ||
position: relative; | ||
top: 17px; | ||
cursor: pointer; | ||
} | ||
} | ||
</style> |
Oops, something went wrong.