Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
web/satellite/vuetify-poc: add low token balance banner
Added low token balance banner to vuetify app with the same logic as in main app. Issue: #6460 Change-Id: Ifa9af8e2179ec3a6601b5053575990b86cc8f0b5
- Loading branch information
1 parent
cd8e9bd
commit fe890ff
Showing
4 changed files
with
132 additions
and
12 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
web/satellite/vuetify-poc/src/components/LowTokenBalanceBanner.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,35 @@ | ||
// Copyright (C) 2023 Storj Labs, Inc. | ||
// See LICENSE for copying information. | ||
|
||
<template> | ||
<v-alert | ||
closable | ||
variant="tonal" | ||
type="warning" | ||
rounded="lg" | ||
class="mt-2 mb-4" | ||
border | ||
> | ||
<template #default> | ||
<v-row class="ma-0 flex-nowrap justify-space-between align-center"> | ||
<p> | ||
Your STORJ Token balance is low. Deposit more STORJ tokens or make sure you have a credit card | ||
on file to avoid interruptions in service. | ||
</p> | ||
<p class="ml-2 text-cursor-pointer text-no-wrap text-decoration-underline" @click="() => emits('click')">{{ ctaLabel }}</p> | ||
</v-row> | ||
</template> | ||
</v-alert> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { VAlert, VRow } from 'vuetify/components'; | ||
const props = defineProps<{ | ||
ctaLabel: string | ||
}>(); | ||
const emits = defineEmits<{ | ||
click: [], | ||
}>(); | ||
</script> |
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