diff --git a/src/App.vue b/src/App.vue index 25c4def..de12479 100644 --- a/src/App.vue +++ b/src/App.vue @@ -12,7 +12,7 @@ import { loginWithRemoteApp, resumeRemoteAppLogin, } from './services/signer' -import { notificationPermission, notificationSupport, subscribeToNotifications } from './services/notifications' +import { notificationPermission, subscribeToNotifications } from './services/notifications' const heroBackgrounds = Object.entries( import.meta.glob('../public/images/bg-*.{avif,webp,jpg,jpeg,png}', { @@ -192,9 +192,6 @@ const isEventEditorOpen = ref(false) const notificationStats = ref({ configured: false, subscriberCount: 0 }) const notificationMessage = ref('') const notificationError = ref('') -const signupNotificationMessage = ref('') -const signupNotificationError = ref('') -const isSignupNotificationLoading = ref(false) const payments = ref([]) const cards = ref([]) const accessLogs = ref([]) @@ -367,7 +364,6 @@ const canContinue = computed(() => { if (signupStep.value === 4) return DATA_IMAGE_PATTERN.test(form.signature) return true }) -const signupNotificationSupport = computed(() => notificationSupport()) const pwaInstallTitle = computed(() => { if (isPwaStandalone.value) return 'PWA installed' if (installPlatform.value === 'ios') return 'Install L484 on iPhone' @@ -789,14 +785,11 @@ const openSignup = () => { loadBitcoinPrice() refreshPwaStandalone() installPlatform.value = detectInstallPlatform() - signupStep.value = currentMember.value ? 6 : 0 + signupStep.value = currentMember.value ? 5 : 0 createdMember.value = currentMember.value isCardRevealing.value = false generatedCredentials.value = null formError.value = '' - signupNotificationMessage.value = '' - signupNotificationError.value = '' - isSignupNotificationLoading.value = false } const openMemberSignin = () => { @@ -859,7 +852,6 @@ const resetForm = () => { const nextStep = () => { formError.value = '' - signupNotificationError.value = '' sanitizeForm() if (signupStep.value === 2 && !validateApplicant()) { @@ -1033,7 +1025,7 @@ const createMembership = async () => { saveMembers() resetForm() isCardRevealing.value = true - signupStep.value = 6 + signupStep.value = 5 window.setTimeout(() => { isCardRevealing.value = false @@ -1043,21 +1035,6 @@ const createMembership = async () => { } } -const enableSignupNotificationsAndCreate = async () => { - signupNotificationMessage.value = '' - signupNotificationError.value = '' - isSignupNotificationLoading.value = true - try { - const result = await subscribeToNotifications() - signupNotificationMessage.value = `Notifications enabled. ${result.subscriberCount || 1} device subscribed.` - await createMembership() - } catch (error) { - signupNotificationError.value = error instanceof Error ? error.message : 'Could not enable notifications.' - } finally { - isSignupNotificationLoading.value = false - } -} - const syncSignatureCanvas = () => { const canvas = signatureCanvas.value if (!canvas) return @@ -3333,25 +3310,23 @@ watch(mobileMenuOpen, (open) => {
L484 Membership
Notifications
-- L484 can send updates about your membership, payment, card pickup, and private events directly to this installed app. Permission {{ notificationPermission }}. -
-