From 9603f59b96f68b973bb4c793a037a3b932e42955 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 10 Nov 2018 22:16:34 +0200 Subject: [PATCH] Fix bugs and improve minor UI things --- .../frontend/src/pages/dashboard/Client.js | 2 +- .../frontend/src/pages/dashboard/Instance.js | 4 +-- .../frontend/src/pages/dashboard/Plugin.js | 27 +++++++++---------- .../frontend/src/pages/dashboard/index.js | 2 +- .../src/style/lib/preferencetable.sass | 4 +++ 5 files changed, 21 insertions(+), 18 deletions(-) diff --git a/maubot/management/frontend/src/pages/dashboard/Client.js b/maubot/management/frontend/src/pages/dashboard/Client.js index 04d195f..0424911 100644 --- a/maubot/management/frontend/src/pages/dashboard/Client.js +++ b/maubot/management/frontend/src/pages/dashboard/Client.js @@ -157,7 +157,7 @@ class Client extends BaseMainView { renderPreferences = () => ( - + disabled={!this.isNew} fullWidth={true} className="id"/> this.setState({ enabled })}/> + {!this.isNew && + + + }
evt.target.parentElement.classList.remove("drag")}/> {this.state.uploading && }
- {!this.isNew && <> - - - - -
- -
- } + {!this.isNew &&
+ +
}
{this.state.error}
{!this.isNew && this.renderInstances()} diff --git a/maubot/management/frontend/src/pages/dashboard/index.js b/maubot/management/frontend/src/pages/dashboard/index.js index f356db9..ed72dc7 100644 --- a/maubot/management/frontend/src/pages/dashboard/index.js +++ b/maubot/management/frontend/src/pages/dashboard/index.js @@ -137,7 +137,7 @@ class Dashboard extends Component { this.renderView("clients", Client, match.params.id)}/> - this.renderView("plugin", Plugin, match.params.id)}/> + this.renderView("plugins", Plugin, match.params.id)}/> this.renderNotFound()}/> diff --git a/maubot/management/frontend/src/style/lib/preferencetable.sass b/maubot/management/frontend/src/style/lib/preferencetable.sass index 66fcad7..64c2124 100644 --- a/maubot/management/frontend/src/style/lib/preferencetable.sass +++ b/maubot/management/frontend/src/style/lib/preferencetable.sass @@ -62,6 +62,10 @@ border-bottom: 1px solid $background + &.id:disabled + font-family: "Fira Code", monospace + font-weight: bold + &:not(:disabled) border-bottom: 1px dotted $primary