Reduce space between users and add secondary placeholder

This commit is contained in:
Andrew Kingston 2022-08-01 10:31:28 +01:00
parent 7c335431e1
commit 3be2972166
1 changed files with 21 additions and 17 deletions

View File

@ -3,6 +3,7 @@
ModalContent,
PickerDropdown,
ActionButton,
Layout,
notifications,
} from "@budibase/bbui"
import { roles } from "stores/backend"
@ -78,11 +79,13 @@
onConfirm={() => addData(appData)}
showCloseIcon={false}
>
<Layout noPadding gap="XS">
{#each appData as input, index}
<PickerDropdown
autocomplete
primaryOptions={optionSections}
secondaryOptions={$roles}
secondaryPlaceholder="Access"
bind:primaryValue={input.id}
bind:secondaryValue={input.role}
bind:searchTerm={search}
@ -95,6 +98,7 @@
getSecondaryOptionColour={role => RoleUtils.getRoleColour(role._id)}
/>
{/each}
</Layout>
<div>
<ActionButton on:click={addNewInput} icon="Add">Add email</ActionButton>
</div>