feat: Integrate branding store in PaymentCompleted and PaymentFailed views to display branding information

This commit is contained in:
2025-04-24 14:22:01 -04:00
parent defba49e97
commit d0876861dc
2 changed files with 6 additions and 2 deletions

View File

@@ -22,8 +22,8 @@
<p> <p>
{{ t('message') }} {{ t('message') }}
<span v-if="creatorUserName"> <span v-if="brandingStore.value?.name">
{{ creatorUserName }} {{ brandingStore.value.name }}
</span> </span>
<span v-else> <span v-else>
@@ -42,10 +42,12 @@
<script setup> <script setup>
import {useRouter, useRoute} from 'vue-router'; import {useRouter, useRoute} from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useBrandingStore } from '@/stores/brandingStore.js';
const router = useRouter(); const router = useRouter();
const route = useRoute(); const route = useRoute();
const { t } = useI18n(); const { t } = useI18n();
const brandingStore = useBrandingStore();
function goBack() { function goBack() {
// Navigate back to the creator's page // Navigate back to the creator's page

View File

@@ -18,10 +18,12 @@
<script setup> <script setup>
import { useRouter, useRoute } from 'vue-router'; import { useRouter, useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useBrandingStore } from '@/stores/brandingStore.js';
const router = useRouter(); const router = useRouter();
const route = useRoute(); const route = useRoute();
const { t } = useI18n(); const { t } = useI18n();
const brandingStore = useBrandingStore();
function goBack() { function goBack() {
const creatorName = route.params.creator?.split('/')[0] || ''; const creatorName = route.params.creator?.split('/')[0] || '';