aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-07-29 13:36:05 -0700
committerAdam Soltys <[email protected]>2025-07-29 13:36:10 -0700
commit5757ef30eb664441e023396cae5a7f8b5db409ff (patch)
tree50c4e6240ec08dceac5828c68e9032e85e232dfe /src/routes
parentb8763e1505087c3ed8b761aac88cbad57495abb8 (diff)
downloadcoinos-ui-5757ef30eb664441e023396cae5a7f8b5db409ff.tar.gz
coinos-ui-5757ef30eb664441e023396cae5a7f8b5db409ff.zip
detect fund updates
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/(app)/fund/[id]/access/+page.svelte1
-rw-r--r--src/routes/(app)/payment/[id]/+page.svelte4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/routes/(app)/fund/[id]/access/+page.svelte b/src/routes/(app)/fund/[id]/access/+page.svelte
index 23a829a9..cc2921c5 100644
--- a/src/routes/(app)/fund/[id]/access/+page.svelte
+++ b/src/routes/(app)/fund/[id]/access/+page.svelte
@@ -7,6 +7,7 @@
let { data } = $props();
let { id, managers } = $derived(data);
let m = $state(data.managers);
+ $effect(() => (m = data.managers));
let username = $state();
let del = async (e, user) => {
e.preventDefault();
diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte
index fcde487b..0667291e 100644
--- a/src/routes/(app)/payment/[id]/+page.svelte
+++ b/src/routes/(app)/payment/[id]/+page.svelte
@@ -67,7 +67,9 @@
let direction = $state("");
onMount(() => {
- direction = amount > 0 ? $t("payments.from") : $t("payments.to");
+ let a = amount;
+ if (type === types.fund) a = 0 - a;
+ direction = a > 0 ? $t("payments.from") : $t("payments.to");
if (direction)
direction =