Records: exclude Zwift activities by title; show Saved confirmation before closing drawer
- _is_outdoor now also excludes activities whose title matches /\bzwift\b/i, covering the ~50 Strava-imported Zwift rides that lack sub_sport metadata. - EditDrawer waits 900ms after a successful save before dispatching 'saved' (which closes the drawer), so the green "Saved" confirmation is visible.
This commit is contained in:
@@ -93,6 +93,7 @@
|
||||
if (!res.ok) throw new Error(await res.text());
|
||||
saveStatus = 'Saved';
|
||||
saveOk = true;
|
||||
await new Promise(r => setTimeout(r, 900));
|
||||
dispatch('saved', { title, description });
|
||||
} catch (e: any) {
|
||||
saveStatus = e.message;
|
||||
|
||||
Reference in New Issue
Block a user