From 71eee5d31a29ff84a33be039a063fa4af7ba34a5 Mon Sep 17 00:00:00 2001 From: Kitteh Date: Sun, 9 May 2021 12:42:31 +0100 Subject: [PATCH] Make onclick work again on TransitViewSecret. --- src/pages/Transit/TransitViewSecret.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Transit/TransitViewSecret.ts b/src/pages/Transit/TransitViewSecret.ts index bd067cf..809cb44 100644 --- a/src/pages/Transit/TransitViewSecret.ts +++ b/src/pages/Transit/TransitViewSecret.ts @@ -20,7 +20,6 @@ export class TransitViewSecretPage extends Page { } goBack(): void { - pageState.currentSecret = ""; changePage("TRANSIT_VIEW"); } @@ -29,7 +28,7 @@ export class TransitViewSecretPage extends Page { return makeElement({ tag: "a", class: "uk-link-heading", - onclick: onclick, + onclick: params.onclick, children: makeElement({ tag: "div", class: ["uk-padding-small", "uk-background-primary"], @@ -63,6 +62,7 @@ export class TransitViewSecretPage extends Page { let transitKey = await getTransitKey(pageState.currentBaseMount, pageState.currentSecret); + console.log(transitKey.supports_encryption); setPageContent(makeElement({ tag: "div", class: ["uk-grid", "uk-child-width-expand@s"],