From 3b94fa4ea830f91439f08bf03d9893fa91f126d7 Mon Sep 17 00:00:00 2001 From: mvvasilev Date: Thu, 26 Oct 2023 20:15:34 +0300 Subject: [PATCH] Update title, description, and block encrypt/decrypt buttons without key --- README.md | 4 +++- paste-eater-frontend/public/index.html | 4 ++-- paste-eater-frontend/src/components/Topbar.js | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ed0e5de..4ff4b45 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,6 @@

-The premiere paste-eating paste service. Wholly sponsored by Ralph Wiggum. \ No newline at end of file +The premiere paste-eating paste service. Wholly sponsored by Ralph Wiggum. + +Available now, at https://paste.haedhutner.dev/ \ No newline at end of file diff --git a/paste-eater-frontend/public/index.html b/paste-eater-frontend/public/index.html index aa069f2..91586db 100644 --- a/paste-eater-frontend/public/index.html +++ b/paste-eater-frontend/public/index.html @@ -7,7 +7,7 @@ - React App + Eat Paste! diff --git a/paste-eater-frontend/src/components/Topbar.js b/paste-eater-frontend/src/components/Topbar.js index a138161..e8486a2 100644 --- a/paste-eater-frontend/src/components/Topbar.js +++ b/paste-eater-frontend/src/components/Topbar.js @@ -70,6 +70,7 @@ export default function Topbar(props) { variant="secondary" id="button-decrypt" onClick={() => props.onDecrypt(decryptionKey)} + disabled={!decryptionKey} > Decrypt @@ -89,6 +90,7 @@ export default function Topbar(props) { variant="secondary" id="button-encrypt" onClick={() => props.onEncrypt(encryptionKey)} + disabled={!encryptionKey} > Encrypt