tweak(dashboard): exit system edit mode when submitting

This commit is contained in:
Jake Fulmine 2024-02-18 14:08:03 +01:00
parent 6a1b584121
commit a81bbe6e26

View file

@ -12,7 +12,6 @@
export let editMode: boolean;
export let user: System;
let loading: boolean;
let success = false;
let err: string[] = [];
@ -46,8 +45,8 @@
user = res;
currentUser.update(() => res);
err = [];
success = true;
loading = false;
editMode = false;
} catch (error) {
console.log(error);
err.push(error.message);
@ -60,9 +59,6 @@
{#each err as error}
<Alert color="danger">{@html error}</Alert>
{/each}
{#if success}
<Alert fade={false} color="success">System information updated!</Alert>
{/if}
<Row>
<Col xs={12} lg={4} class="mb-2">
<Label>Name:</Label>