diff --git a/src/lib/components/bottomModalAlert.svelte b/src/lib/components/bottomModalAlert.svelte index 6de328e2b..49c1b7d19 100644 --- a/src/lib/components/bottomModalAlert.svelte +++ b/src/lib/components/bottomModalAlert.svelte @@ -21,6 +21,12 @@ dismissBottomModalAlert(modalAlert.id); hideNotification(modalAlert.id); if (modalAlert.closed) modalAlert.closed(); + + if (currentIndex === filteredModalAlerts.length - 1 && filteredModalAlerts.length > 1) { + currentIndex = currentIndex - 1; + } else { + currentIndex = currentIndex % filteredModalAlerts.length; + } } function showNext() { @@ -32,32 +38,59 @@ } -{#if filteredModalAlerts.length > 0} -
-
- {#if currentModalAlert} +{#if filteredModalAlerts.length > 0 && currentModalAlert} +
+
+
{#key currentModalAlert.id} -
-
- +
+ {currentModalAlert.title} - {currentModalAlert.title} +
+
{#if filteredModalAlerts.length > 1} - - Feature {currentIndex + 1} of {filteredModalAlerts.length} - +
+ + Feature {currentIndex + 1} of {filteredModalAlerts.length} + + +
+
+
{/if}
@@ -72,134 +105,85 @@
-
-
+
+ + + {#if currentModalAlert.learnMore && currentModalAlert.learnMore.link} - - {#if currentModalAlert.learnMore && currentModalAlert.learnMore.link} - - {/if} -
- -
-
+ {/if}
{/key} - {/if} -
+
+
{/if}