Skip to content

Commit

Permalink
🔨 Show try-appointment CTA only when not logged in (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
devmount authored Jul 22, 2024
1 parent 21277f6 commit 506b607
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/components/bookingView/BookingViewError.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
{{ body ?? t('error.generalBookingError') }}
</div>
<primary-button
v-if="!user.exists()"
class="btn-start mt-12 p-7"
:label="t('label.startUsingTba')"
@click="router.push({ name: 'home' })"
Expand All @@ -18,9 +19,11 @@ import PrimaryButton from '@/elements/PrimaryButton.vue';
import ArtInvalidLink from '@/elements/arts/ArtInvalidLink.vue';
import { useI18n } from 'vue-i18n';
import { useRouter } from 'vue-router';
import { useUserStore } from '@/stores/user-store';
const { t } = useI18n();
const router = useRouter();
const user = useUserStore();
defineProps({
heading: [String, null],
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/components/bookingView/BookingViewSuccess.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
</div>
</div>
<primary-button
v-if="!user.exists()"
class="btn-start mt-12 p-7"
:label="t('label.startUsingTba')"
@click="router.push({ name: 'home' })"
Expand All @@ -34,6 +35,7 @@ import { inject } from 'vue';
import { timeFormat } from '@/utils';
import { useI18n } from 'vue-i18n';
import { useRouter } from 'vue-router';
import { useUserStore } from '@/stores/user-store';
import ArtSuccessfulBooking from '@/elements/arts/ArtSuccessfulBooking';
import PrimaryButton from '@/elements/PrimaryButton';
Expand All @@ -43,6 +45,7 @@ const { t } = useI18n();
const router = useRouter();
const dj = inject(dayjsKey);
const user = useUserStore();
defineProps({
selectedEvent: Object,
Expand Down

0 comments on commit 506b607

Please sign in to comment.