mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
tweak(dashboard): exit system edit mode when submitting
This commit is contained in:
parent
6a1b584121
commit
a81bbe6e26
1 changed files with 1 additions and 5 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue