fix: hide notification preferences section from admin users

This commit is contained in:
2026-05-17 00:28:55 +01:00
parent b08df624a8
commit 5c84cd71b8
+14 -11
View File
@@ -925,9 +925,11 @@
<div class="text-sm font-medium text-emerald-800"> <div class="text-sm font-medium text-emerald-800">
Your loyalty card is full! Your next completed appointment will receive 10% Your loyalty card is full! Your next completed appointment will receive 10%
off. off.
</div> </div>
</div> </div>
{/if} {/if}
<Separator />
</div> </div>
</div> </div>
{/if} {/if}
@@ -1171,13 +1173,14 @@
<Separator /> <Separator />
<!-- Notification Preferences --> <!-- Notification Preferences (non-admin users only) -->
<div> {#if authStore.currentUser?.role !== 'admin'}
<h3 class="mb-2 text-sm font-semibold">Notifications</h3> <div>
<p class="mb-3 text-sm text-gray-600"> <h3 class="mb-2 text-sm font-semibold">Notifications</h3>
Choose how you receive booking reminders and updates <p class="mb-3 text-sm text-gray-600">
</p> Choose how you receive booking reminders and updates
<div class="space-y-3"> </p>
<div class="space-y-3">
<div class="flex items-center justify-between rounded-lg border p-3"> <div class="flex items-center justify-between rounded-lg border p-3">
<div> <div>
<div class="text-sm font-medium">Email</div> <div class="text-sm font-medium">Email</div>
@@ -1241,7 +1244,7 @@
</label> </label>
</div> </div>
</div> </div>
</div> {/if}
<Separator /> <Separator />