From 4a310452331b15053a7a4b50b98b449763428a34 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 28 Feb 2022 14:29:19 +0000 Subject: [PATCH] Changing the API key modal to have a copy input which allows copying the API key easily. --- .../automation/Shared/WebhookDisplay.svelte | 53 +---------------- .../components/common/inputs/CopyInput.svelte | 58 +++++++++++++++++++ .../settings/UpdateAPIKeyModal.svelte | 5 +- packages/server/package.json | 2 - packages/server/src/automations/utils.js | 4 +- packages/server/yarn.lock | 32 +--------- 6 files changed, 66 insertions(+), 88 deletions(-) create mode 100644 packages/builder/src/components/common/inputs/CopyInput.svelte diff --git a/packages/builder/src/components/automation/Shared/WebhookDisplay.svelte b/packages/builder/src/components/automation/Shared/WebhookDisplay.svelte index 857640896c..dcd96ce2b9 100644 --- a/packages/builder/src/components/automation/Shared/WebhookDisplay.svelte +++ b/packages/builder/src/components/automation/Shared/WebhookDisplay.svelte @@ -1,5 +1,5 @@ -
- -
copyToClipboard()}> - -
-
- - + diff --git a/packages/builder/src/components/common/inputs/CopyInput.svelte b/packages/builder/src/components/common/inputs/CopyInput.svelte new file mode 100644 index 0000000000..68974fb63a --- /dev/null +++ b/packages/builder/src/components/common/inputs/CopyInput.svelte @@ -0,0 +1,58 @@ + + +
+ +
copyToClipboard(value || copyValue)}> + +
+
+ + diff --git a/packages/builder/src/components/settings/UpdateAPIKeyModal.svelte b/packages/builder/src/components/settings/UpdateAPIKeyModal.svelte index 3a682078c8..c82be19fed 100644 --- a/packages/builder/src/components/settings/UpdateAPIKeyModal.svelte +++ b/packages/builder/src/components/settings/UpdateAPIKeyModal.svelte @@ -1,7 +1,8 @@