From e1ac3cd5d2903765e13229d331bf16e28a7c587b Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 21 May 2021 11:00:08 +0100 Subject: [PATCH] Rename general settings to organisation and add builder theme to Theming page, add password changing and user info changing to avatar dropdown --- .../settings}/ChangePasswordModal.svelte | 2 +- .../components/settings/ThemeEditor.svelte | 12 ------ .../settings/ThemeEditorDropdown.svelte | 35 ---------------- .../settings}/UpdateUserInfoModal.svelte | 0 .../start/BuilderSettingsModal.svelte | 42 ------------------- .../src/pages/builder/apps/index.svelte | 7 ++-- .../src/pages/builder/portal/_layout.svelte | 32 +++++++++----- .../{general.svelte => organisation.svelte} | 7 ++-- .../builder/portal/settings/theming.svelte | 36 ++++++++++++++++ 9 files changed, 66 insertions(+), 107 deletions(-) rename packages/builder/src/{pages/builder/apps/_components => components/settings}/ChangePasswordModal.svelte (91%) delete mode 100644 packages/builder/src/components/settings/ThemeEditor.svelte delete mode 100644 packages/builder/src/components/settings/ThemeEditorDropdown.svelte rename packages/builder/src/{pages/builder/apps/_components => components/settings}/UpdateUserInfoModal.svelte (100%) delete mode 100644 packages/builder/src/components/start/BuilderSettingsModal.svelte rename packages/builder/src/pages/builder/portal/settings/{general.svelte => organisation.svelte} (94%) create mode 100644 packages/builder/src/pages/builder/portal/settings/theming.svelte diff --git a/packages/builder/src/pages/builder/apps/_components/ChangePasswordModal.svelte b/packages/builder/src/components/settings/ChangePasswordModal.svelte similarity index 91% rename from packages/builder/src/pages/builder/apps/_components/ChangePasswordModal.svelte rename to packages/builder/src/components/settings/ChangePasswordModal.svelte index b0cb74cb64..d78c4c7efd 100644 --- a/packages/builder/src/pages/builder/apps/_components/ChangePasswordModal.svelte +++ b/packages/builder/src/components/settings/ChangePasswordModal.svelte @@ -9,7 +9,7 @@ const updatePassword = async () => { try { await auth.updateSelf({ ...$auth.user, password }) - notifications.success("Information updated successfully") + notifications.success("Password changed successfully") } catch (error) { notifications.error("Failed to update password") } diff --git a/packages/builder/src/components/settings/ThemeEditor.svelte b/packages/builder/src/components/settings/ThemeEditor.svelte deleted file mode 100644 index 8e387b6492..0000000000 --- a/packages/builder/src/components/settings/ThemeEditor.svelte +++ /dev/null @@ -1,12 +0,0 @@ - - - + + + + +