From 911f2780ef6e8966ef4a7efd483a9955b7ac9058 Mon Sep 17 00:00:00 2001 From: Michael Drury Date: Wed, 9 Feb 2022 20:30:52 +0000 Subject: [PATCH] Start of API key modal. --- .../settings/UpdateAPIKeyModal.svelte | 36 +++++++++++++++++++ .../src/pages/builder/apps/index.svelte | 11 ++++++ packages/builder/src/stores/portal/auth.js | 11 ++++++ packages/frontend-core/src/api/user.js | 21 +++++++++++ 4 files changed, 79 insertions(+) create mode 100644 packages/builder/src/components/settings/UpdateAPIKeyModal.svelte diff --git a/packages/builder/src/components/settings/UpdateAPIKeyModal.svelte b/packages/builder/src/components/settings/UpdateAPIKeyModal.svelte new file mode 100644 index 0000000000..a63367cf4a --- /dev/null +++ b/packages/builder/src/components/settings/UpdateAPIKeyModal.svelte @@ -0,0 +1,36 @@ + + +{#if loaded} + + + You can find information about your developer account here, such as the + API key used to access the Budibase API. + + + +{/if} diff --git a/packages/builder/src/pages/builder/apps/index.svelte b/packages/builder/src/pages/builder/apps/index.svelte index 39cc780ac7..309e760ad1 100644 --- a/packages/builder/src/pages/builder/apps/index.svelte +++ b/packages/builder/src/pages/builder/apps/index.svelte @@ -19,12 +19,14 @@ import { gradient } from "actions" import UpdateUserInfoModal from "components/settings/UpdateUserInfoModal.svelte" import ChangePasswordModal from "components/settings/ChangePasswordModal.svelte" + import UpdateAPIKeyModal from "components/settings/UpdateAPIKeyModal.svelte" import { processStringSync } from "@budibase/string-templates" import Logo from "assets/bb-emblem.svg" let loaded = false let userInfoModal let changePasswordModal + let apiKeyModal onMount(async () => { try { @@ -81,6 +83,12 @@ userInfoModal.show()}> Update user information + apiKeyModal.show()} + > + View developer information + changePasswordModal.show()} @@ -155,6 +163,9 @@ + + + {/if}