From 1547b0793f277aaaa9ca851b4bb434edf5a496cb Mon Sep 17 00:00:00 2001 From: NoCrypt <57245077+NoCrypt@users.noreply.github.com> Date: Fri, 16 Aug 2024 21:05:15 +0700 Subject: [PATCH] refactor: move notices on update modal for android --- common/components/UpdateModal.svelte | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/common/components/UpdateModal.svelte b/common/components/UpdateModal.svelte index e518ec6e..03dcf8d4 100644 --- a/common/components/UpdateModal.svelte +++ b/common/components/UpdateModal.svelte @@ -65,12 +65,21 @@ {:then changelog} {#each changelog as { version, date, body }}
-
+

New Update Available

{version} | {new Date(date).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' })}
-
+ {#if SUPPORTS.isAndroid} +
+

Notice

+
This update was served directly from the GitHub release. If you have downloaded this app from F-Droid or IzzyOnDroid, please be aware that updating this way did not go through the additional screening process typically performed by these platforms.
+
+ {/if} +

Changelog

- {body.replaceAll('- ', '')} +
+ {body.replaceAll('- ', '• ')} +
+
{/each} @@ -97,11 +106,7 @@ {/each} {/await}

- {#if SUPPORTS.isAndroid} -
-

This update was served directly from the GitHub release. If you have downloaded this app from F-Droid or IzzyOnDroid, please be aware that updating this way did not go through the additional screening process typically performed by these platforms.

-
- {/if} +