summary refs log tree commit diff
path: root/synapse_topology/webui
diff options
context:
space:
mode:
authorJorik Schellekens <joriks@matrix.org>2019-08-16 16:48:00 +0100
committerJorik Schellekens <joriks@matrix.org>2019-08-28 15:59:54 +0100
commitff59e6a85c587181333604d55aba9b4300374c06 (patch)
tree2839355cbe9cc4db3e0d5aba9d2eca906a238b30 /synapse_topology/webui
parentSo much lint in my life (diff)
downloadsynapse-ff59e6a85c587181333604d55aba9b4300374c06.tar.xz
Some little ui bugs
Diffstat (limited to 'synapse_topology/webui')
-rw-r--r--synapse_topology/webui/src/js/components/ExportKeys.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse_topology/webui/src/js/components/ExportKeys.jsx b/synapse_topology/webui/src/js/components/ExportKeys.jsx
index 2bb4b94047..ad7bdb680c 100644
--- a/synapse_topology/webui/src/js/components/ExportKeys.jsx
+++ b/synapse_topology/webui/src/js/components/ExportKeys.jsx
@@ -19,6 +19,7 @@ export default ({ secretKeyLoaded, secretKey, onClick }) => {
 
     const decoratedOnClick = () => {
 
+        setDownloadedOrCopied(false);
         toggle();
         onClick();
 
@@ -51,7 +52,7 @@ export default ({ secretKeyLoaded, secretKey, onClick }) => {
                 <ButtonDisplay>
                     <button
                         onClick={decoratedOnClick}
-                        disabled={downloadedOrCopied ? undefined : "true"}
+                        disabled={!downloadedOrCopied}
                     >Next</button>
                 </ButtonDisplay>
             </div>