Skip to content

Commit 90bdf82

Browse files
committed
Update custom permission modal
1 parent 6dd7b18 commit 90bdf82

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

src/lib/components/permissions/custom.svelte

Lines changed: 18 additions & 15 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';
@@ -25,21 +25,24 @@
2525
$: disabled = !value || $groups.has(value);
2626
</script>
2727

28-
<Modal title="Custom permission" bind:show on:close={reset} onSubmit={create}>
29-
<p class="text">
30-
Custom permissions allow you to grant access to specific users or teams using their ID and
31-
role.
32-
</p>
28+
<Modal
29+
title="Custom permission"
30+
description="Custom permissions allow you to grant access to specific users or teams using their ID and
31+
role."
32+
bind:show
33+
on:close={reset}
34+
onSubmit={create}>
3335
<FormList>
34-
<InputText
35-
showLabel={false}
36-
id="custom-permission"
37-
label="Custom permission"
38-
placeholder="user:[USER_ID] or team:[TEAM_ID]/[ROLE]"
39-
bind:value />
40-
<Helper type="neutral">
41-
A permission should be formatted as: user:[USER_ID] or team:[TEAM_ID]/[ROLE]¸
42-
</Helper>
36+
<FormItem>
37+
<InputText
38+
id="custom-permission"
39+
label="Role"
40+
placeholder="user:[USER_ID] or team:[TEAM_ID]/[ROLE]"
41+
bind:value />
42+
<Helper type="neutral">
43+
A permission should be formatted as: user:[USER_ID] or team:[TEAM_ID]/[ROLE]¸
44+
</Helper>
45+
</FormItem>
4346
</FormList>
4447

4548
<svelte:fragment slot="footer">

0 commit comments

Comments
 (0)