diff --git a/packages/bbui/src/Form/Core/InputDropdown.svelte b/packages/bbui/src/Form/Core/InputDropdown.svelte
index 153501ce5a..128353b7b9 100644
--- a/packages/bbui/src/Form/Core/InputDropdown.svelte
+++ b/packages/bbui/src/Form/Core/InputDropdown.svelte
@@ -17,7 +17,7 @@
export let options = []
export let getOptionLabel = option => extractProperty(option, "label")
export let getOptionValue = option => extractProperty(option, "value")
-
+ export let getOptionSubtitle = option => option?.subtitle
export let isOptionSelected = () => false
const dispatch = createEventDispatcher()
@@ -135,7 +135,7 @@
class="spectrum-Textfield-input spectrum-InputGroup-input"
/>
-
+
- {#if open}
-
-
-
- {/if}
+ {#if open}
+
+
+
+ {/if}
diff --git a/packages/bbui/src/Form/InputDropdown.svelte b/packages/bbui/src/Form/InputDropdown.svelte
index 93766495b8..54b07cf0d7 100644
--- a/packages/bbui/src/Form/InputDropdown.svelte
+++ b/packages/bbui/src/Form/InputDropdown.svelte
@@ -43,6 +43,7 @@
{quiet}
{autofocus}
{options}
+ isOptionSelected={option => option === dropdownValue}
on:change={onChange}
on:pick={onPick}
on:click
diff --git a/packages/builder/src/pages/builder/portal/users/users/_components/AddUserModal.svelte b/packages/builder/src/pages/builder/portal/users/users/_components/AddUserModal.svelte
index 0730c31674..346b293235 100644
--- a/packages/builder/src/pages/builder/portal/users/users/_components/AddUserModal.svelte
+++ b/packages/builder/src/pages/builder/portal/users/users/_components/AddUserModal.svelte
@@ -29,7 +29,6 @@
},
]
$: hasError = userData.find(x => x.error != null)
-
$: userCount = $licensing.userCount + userData.length
$: reached = licensing.usersLimitReached(userCount)
$: exceeded = licensing.usersLimitExceeded(userCount)
diff --git a/packages/builder/src/pages/builder/portal/users/users/index.svelte b/packages/builder/src/pages/builder/portal/users/users/index.svelte
index 744908fd14..50afd0004a 100644
--- a/packages/builder/src/pages/builder/portal/users/users/index.svelte
+++ b/packages/builder/src/pages/builder/portal/users/users/index.svelte
@@ -191,18 +191,18 @@
for (const user of userData?.users ?? []) {
const { email } = user
-
if (
newUsers.find(x => x.email === email) ||
currentUserEmails.includes(email)
- )
+ ) {
continue
-
+ }
newUsers.push(user)
}
- if (!newUsers.length)
+ if (!newUsers.length) {
notifications.info("Duplicated! There is no new users to add.")
+ }
return { ...userData, users: newUsers }
}
@@ -267,7 +267,6 @@
try {
await groups.actions.init()
groupsLoaded = true
-
pendingInvites = await users.getInvites()
invitesLoaded = true
} catch (error) {