commit 38b495d0d5b8b41386682591766d001c69021821
parent 349a9c5602166edcaf1b2617e573342026ab59b7
Author: triesap <137732411+triesap@users.noreply.github.com>
Date: Sat, 8 Mar 2025 00:07:32 +0000
apps-lib: edit profile view callback functions
Diffstat:
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/apps-lib/src/lib/view/profile.svelte b/apps-lib/src/lib/view/profile.svelte
@@ -34,7 +34,9 @@
data: IViewProfileData;
loading_photo_upload: boolean;
loading_photo_upload_open: boolean;
- lc_handle_back: CallbackPromise;
+ lc_handle_back: CallbackPromiseGeneric<{
+ is_photo_existing: boolean;
+ }>;
lc_handle_photo_add: LcPhotoAddCallback;
lc_handle_photo_options: CallbackPromise;
lc_fs_read_bin: CallbackPromiseFull<string, Uint8Array | undefined>;
@@ -97,7 +99,11 @@
basis={{
glyph: `arrow-left`,
loading: basis.loading_photo_upload,
- callback: basis.lc_handle_back,
+ callback: async () => {
+ await basis.lc_handle_back({
+ is_photo_existing: photo_overlay_visible,
+ });
+ },
}}
/>
</FloatPage>