mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 17:20:14 +00:00
feat(dashboard): dont exit editing after submit just like in other cards
This commit is contained in:
parent
5985bb4f8a
commit
b4b7525fc0
1 changed files with 5 additions and 1 deletions
|
|
@ -12,6 +12,7 @@
|
||||||
export let editMode: boolean;
|
export let editMode: boolean;
|
||||||
export let user: System;
|
export let user: System;
|
||||||
let loading: boolean;
|
let loading: boolean;
|
||||||
|
let success = false;
|
||||||
|
|
||||||
let err: string[] = [];
|
let err: string[] = [];
|
||||||
|
|
||||||
|
|
@ -42,7 +43,7 @@
|
||||||
user = res;
|
user = res;
|
||||||
currentUser.update(() => res);
|
currentUser.update(() => res);
|
||||||
err = [];
|
err = [];
|
||||||
editMode = false;
|
success = true;
|
||||||
loading = false;
|
loading = false;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|
@ -56,6 +57,9 @@
|
||||||
{#each err as error}
|
{#each err as error}
|
||||||
<Alert color="danger">{@html error}</Alert>
|
<Alert color="danger">{@html error}</Alert>
|
||||||
{/each}
|
{/each}
|
||||||
|
{#if success}
|
||||||
|
<Alert fade={false} color="success">System information updated!</Alert>
|
||||||
|
{/if}
|
||||||
<Row>
|
<Row>
|
||||||
<Col xs={12} lg={4} class="mb-2">
|
<Col xs={12} lg={4} class="mb-2">
|
||||||
<Label>Name:</Label>
|
<Label>Name:</Label>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue