fix: add an alert for errors with system privacy editing

This commit is contained in:
Spectralitree 2021-12-19 19:10:28 +01:00
parent 1bae83a49e
commit 63ae9eaa1d

View File

@ -1,6 +1,6 @@
<script lang="ts">
import Sys from '../../api/system';
import { Input, Row, Col, Button, Label } from 'sveltestrap';
import { Input, Row, Col, Button, Label, Alert } from 'sveltestrap';
import { currentUser } from '../../stores';
import PKAPI from '../../api';
@ -47,6 +47,9 @@
}
</script>
{#if err}
<Alert color="danger">{err}</Alert>
{/if}
<Label><b>Set all to:</b></Label>
<Input type="select" bind:value={allPrivacy}>
<option>public</option>