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">
Your loyalty card is full! Your next completed appointment will receive 10%
off.
</div>
</div>
{/if}
</div>
</div>
{/if}
<Separator />
</div>
</div>
{/if}
@@ -1171,13 +1173,14 @@
<Separator />
<!-- Notification Preferences -->
<div>
<h3 class="mb-2 text-sm font-semibold">Notifications</h3>
<p class="mb-3 text-sm text-gray-600">
Choose how you receive booking reminders and updates
</p>
<div class="space-y-3">
<!-- Notification Preferences (non-admin users only) -->
{#if authStore.currentUser?.role !== 'admin'}
<div>
<h3 class="mb-2 text-sm font-semibold">Notifications</h3>
<p class="mb-3 text-sm text-gray-600">
Choose how you receive booking reminders and updates
</p>
<div class="space-y-3">
<div class="flex items-center justify-between rounded-lg border p-3">
<div>
<div class="text-sm font-medium">Email</div>
@@ -1241,7 +1244,7 @@
</label>
</div>
</div>
</div>
{/if}
<Separator />