Update title, description, and block encrypt/decrypt buttons without key

This commit is contained in:
Miroslav Vasilev 2023-10-26 20:15:34 +03:00
parent 418c842c01
commit 3b94fa4ea8
3 changed files with 7 additions and 3 deletions

View file

@ -4,4 +4,6 @@
<img src="./resources/paste-eater.gif" />
</p>
The premiere paste-eating paste service. Wholly sponsored by Ralph Wiggum.
The premiere paste-eating paste service. Wholly sponsored by Ralph Wiggum.
Available now, at https://paste.haedhutner.dev/

View file

@ -7,7 +7,7 @@
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
content="The paste eating paste service."
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Eat Paste!</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>

View file

@ -70,6 +70,7 @@ export default function Topbar(props) {
variant="secondary"
id="button-decrypt"
onClick={() => props.onDecrypt(decryptionKey)}
disabled={!decryptionKey}
>
Decrypt
</Button>
@ -89,6 +90,7 @@ export default function Topbar(props) {
variant="secondary"
id="button-encrypt"
onClick={() => props.onEncrypt(encryptionKey)}
disabled={!encryptionKey}
>
Encrypt
</Button>