diff --git a/packages/bbui/src/Avatar/Avatar.svelte b/packages/bbui/src/Avatar/Avatar.svelte
index f4e42b28a3..e23c2fc360 100644
--- a/packages/bbui/src/Avatar/Avatar.svelte
+++ b/packages/bbui/src/Avatar/Avatar.svelte
@@ -12,15 +12,7 @@
export let size = "M"
export let url = ""
export let disabled = false
- export let name = "John Doe"
-
- function getInitials(name) {
- let parts = name.split(" ")
- if (parts.length > 0) {
- return parts.map(name => name[0]).join("")
- }
- return name
- }
+ export let initials = "JD"
{#if url}
@@ -38,7 +30,7 @@
size
)}); font-size: calc(var({sizes.get(size)}) / 2)"
>
- {getInitials(name)}
+ {initials || ""}
{/if}
@@ -52,5 +44,6 @@
border-radius: 50%;
overflow: hidden;
user-select: none;
+ text-transform: uppercase;
}
diff --git a/packages/bbui/src/Form/Core/TextField.svelte b/packages/bbui/src/Form/Core/TextField.svelte
index e1793c74a6..650aee4f82 100644
--- a/packages/bbui/src/Form/Core/TextField.svelte
+++ b/packages/bbui/src/Form/Core/TextField.svelte
@@ -82,6 +82,7 @@
on:blur
on:focus
on:input
+ on:keyup
on:blur={onBlur}
on:focus={onFocus}
on:input={onInput}
diff --git a/packages/bbui/src/Form/Input.svelte b/packages/bbui/src/Form/Input.svelte
index fcab178182..1d98982b4f 100644
--- a/packages/bbui/src/Form/Input.svelte
+++ b/packages/bbui/src/Form/Input.svelte
@@ -34,5 +34,6 @@
on:input
on:blur
on:focus
+ on:keyup
/>
diff --git a/packages/builder/src/components/settings/ChangePasswordModal.svelte b/packages/builder/src/components/settings/ChangePasswordModal.svelte
index d78c4c7efd..358e238092 100644
--- a/packages/builder/src/components/settings/ChangePasswordModal.svelte
+++ b/packages/builder/src/components/settings/ChangePasswordModal.svelte
@@ -8,7 +8,7 @@
const updatePassword = async () => {
try {
- await auth.updateSelf({ ...$auth.user, password })
+ await auth.updateSelf({ password })
notifications.success("Password changed successfully")
} catch (error) {
notifications.error("Failed to update password")
diff --git a/packages/builder/src/components/settings/UpdateUserInfoModal.svelte b/packages/builder/src/components/settings/UpdateUserInfoModal.svelte
index 61446f0c00..96e2aa3743 100644
--- a/packages/builder/src/components/settings/UpdateUserInfoModal.svelte
+++ b/packages/builder/src/components/settings/UpdateUserInfoModal.svelte
@@ -10,7 +10,7 @@
const updateInfo = async () => {
try {
- await auth.updateSelf({ ...$auth.user, ...$values })
+ await auth.updateSelf($values)
notifications.success("Information updated successfully")
} catch (error) {
notifications.error("Failed to update information")
diff --git a/packages/builder/src/pages/builder/admin/index.svelte b/packages/builder/src/pages/builder/admin/index.svelte
index 77a1b43c57..6baf927973 100644
--- a/packages/builder/src/pages/builder/admin/index.svelte
+++ b/packages/builder/src/pages/builder/admin/index.svelte
@@ -10,8 +10,10 @@
import { goto } from "@roxi/routify"
import api from "builderStore/api"
import { admin, organisation } from "stores/portal"
+ import PasswordRepeatInput from "components/common/users/PasswordRepeatInput.svelte"
let adminUser = {}
+ let error
async function save() {
try {
@@ -42,13 +44,11 @@
-
+
-
+
diff --git a/packages/builder/src/pages/builder/apps/index.svelte b/packages/builder/src/pages/builder/apps/index.svelte
index ef7c54a8da..7311c112b8 100644
--- a/packages/builder/src/pages/builder/apps/index.svelte
+++ b/packages/builder/src/pages/builder/apps/index.svelte
@@ -51,7 +51,7 @@