Skip to content

Commit 6dd7b18

Browse files
committed
Update label permission modal
1 parent e4f735b commit 6dd7b18

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/lib/components/permissions/label.svelte

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { Button, FormList, Helper, InputText } from '$lib/elements/forms';
2+
import { Button, FormItem, FormList, Helper, InputText } from '$lib/elements/forms';
33
import { createEventDispatcher } from 'svelte';
44
import { Modal } from '..';
55
import type { Writable } from 'svelte/store';
@@ -32,12 +32,18 @@
3232
$: disabled = !value || $groups.has(value);
3333
</script>
3434

35-
<Modal title="Label" bind:show on:close={reset} onSubmit={create}>
36-
<p class="text">Labels allow you to grant access to users with the specfied label.</p>
35+
<Modal
36+
title="Label"
37+
description="Labels allow you to grant access to users with the specfied label."
38+
bind:show
39+
on:close={reset}
40+
onSubmit={create}>
3741
<FormList>
38-
<InputText showLabel={false} id="label" label="Label" placeholder="admin" bind:value />
39-
<Helper type={isError ? 'warning' : 'neutral'}
40-
>Only alphanumeric characters are allowed.</Helper>
42+
<FormItem>
43+
<InputText id="label" label="Label" placeholder="Enter label" bind:value />
44+
<Helper type={isError ? 'warning' : 'neutral'}
45+
>Only alphanumeric characters are allowed.</Helper>
46+
</FormItem>
4147
</FormList>
4248

4349
<svelte:fragment slot="footer">

0 commit comments

Comments
 (0)