From 965f61300fab88de32933a8911596cab574c7af7 Mon Sep 17 00:00:00 2001 From: "ug.rp" Date: Sat, 20 Apr 2024 19:51:34 +0200 Subject: [PATCH] refactor menu --- src/components/r4-app-menu.js | 15 ++++++--------- src/pages/r4-page-settings.js | 10 +++++----- src/pages/r4-page-sign.js | 12 ++++++------ 3 files changed, 17 insertions(+), 20 deletions(-) diff --git a/src/components/r4-app-menu.js b/src/components/r4-app-menu.js index ff90b67a..23d67852 100644 --- a/src/components/r4-app-menu.js +++ b/src/components/r4-app-menu.js @@ -35,28 +35,25 @@ export default class R4AppMenu extends LitElement {
  • Explore
  • Map
  • - ${this.auth ? this.renderAuth() : this.renderNoAuth()} ${this.canAdd ? this.renderAdd() : null}
  • Settings
  • +
  • ${this.auth ? this.renderAuth() : this.renderNoAuth()} ${this.canAdd ? this.renderAdd() : null}
  • ` } renderNoAuth() { - return html` -
  • Sign up
  • -
  • Sign in
  • - ` + return html`About` } renderAuth() { if (this.slug) { - return html`
  • + return html` @${this.slug} -
  • ` + ` } else { - return html`
  • New radio
  • ` + return html`New radio` } } renderAdd() { - return html`
  • sign - up - in - out - + +
  • sign:
  • +
  • up (new account)
  • +
  • in (existing account)
  • +
  • out (logout account)
  • +
    ` }