From 83a642514acb1a706e361d52594e28ef1bd6330e Mon Sep 17 00:00:00 2001 From: hexxa Date: Wed, 13 Apr 2022 22:16:24 +0800 Subject: [PATCH] fix(pane_admin): hide role management panes to avoid confusion --- src/client/web/src/components/pane_admin.tsx | 8 +- src/client/web/src/components/root_frame.tsx | 138 ++++++++++--------- 2 files changed, 74 insertions(+), 72 deletions(-) diff --git a/src/client/web/src/components/pane_admin.tsx b/src/client/web/src/components/pane_admin.tsx index 9666a30..5d8ae65 100644 --- a/src/client/web/src/components/pane_admin.tsx +++ b/src/client/web/src/components/pane_admin.tsx @@ -656,7 +656,7 @@ export class AdminPane extends React.Component { {userList} - + {/*
{ childrenStyles={List([{}, { justifyContent: "flex-end" }])} />
-
+
*/} - + {/* @@ -699,7 +699,7 @@ export class AdminPane extends React.Component {
{roleList} -
+
*/} ); } diff --git a/src/client/web/src/components/root_frame.tsx b/src/client/web/src/components/root_frame.tsx index a662228..67e7304 100644 --- a/src/client/web/src/components/root_frame.tsx +++ b/src/client/web/src/components/root_frame.tsx @@ -26,7 +26,7 @@ export interface Props { update?: (updater: (prevState: ICoreState) => ICoreState) => void; } -export interface State { } +export interface State {} export class RootFrame extends React.Component { constructor(p: Props) { super(p); @@ -95,84 +95,86 @@ export class RootFrame extends React.Component { return (
- - - - -
- ({ - filesPanel: { - name: "RiFolder2Fill", - size: iconSize("s"), - color: "focus", - }, - uploadingsPanel: { - name: "RiUploadCloudFill", - size: iconSize("s"), - color: "focus", - }, - sharingsPanel: { - name: "RiShareBoxLine", - size: iconSize("s"), - color: "focus", - }, - })} +
+ -
-
- - + +
+ ({ + filesPanel: { + name: "RiFolder2Fill", + size: iconSize("s"), + color: "focus", + }, + uploadingsPanel: { + name: "RiUploadCloudFill", + size: iconSize("s"), + color: "focus", + }, + sharingsPanel: { + name: "RiShareBoxLine", + size: iconSize("s"), + color: "focus", + }, + })} ui={this.props.ui} - enabled={displaying === "filesPanel"} + msg={this.props.msg} update={this.props.update} /> - +
- - - +
+ + + - - - -
+ + + -
- Quickshare - - Quick and simple file sharing. + + + +
+ +
+ Quickshare - + Quick and simple file sharing. +