diff --git a/frontend/src/routes/edit/member/[id]/+page.svelte b/frontend/src/routes/edit/member/[id]/+page.svelte index 8f8dab7..864ad80 100644 --- a/frontend/src/routes/edit/member/[id]/+page.svelte +++ b/frontend/src/routes/edit/member/[id]/+page.svelte @@ -200,6 +200,17 @@ fields[newIndex] = temp; }; + const moveLink = (index: number, up: boolean) => { + if (up && index == 0) return; + if (!up && index == links.length - 1) return; + + const newIndex = up ? index - 1 : index + 1; + + const temp = links[index]; + links[index] = links[newIndex]; + links[newIndex] = temp; + }; + const addName = (event: Event) => { event.preventDefault(); @@ -534,6 +545,18 @@