diff --git a/packages/server/public/css/main.css b/packages/server/public/css/main.css index 99a195af3..e97cd38b2 100644 --- a/packages/server/public/css/main.css +++ b/packages/server/public/css/main.css @@ -45,6 +45,10 @@ table.table th .sort-button i { margin-left: 0.5rem; } +table.table tr.is-disabled { + opacity: 0.5; +} + .footer { background-color: transparent; } diff --git a/packages/server/src/routes/index/users.ts b/packages/server/src/routes/index/users.ts index 37263bde8..5baa914b2 100644 --- a/packages/server/src/routes/index/users.ts +++ b/packages/server/src/routes/index/users.ts @@ -107,6 +107,7 @@ router.get('users', async (_path: SubPath, ctx: AppContext) => { view.content.users = users.map(user => { return { ...user, + displayName: user.full_name ? user.full_name : '(not set)', formattedItemMaxSize: formatMaxItemSize(user), formattedTotalSize: formatTotalSize(user), formattedMaxTotalSize: formatMaxTotalSize(user), @@ -114,6 +115,7 @@ router.get('users', async (_path: SubPath, ctx: AppContext) => { totalSizeClass: totalSizeClass(user), formattedAccountType: accountTypeToString(user.account_type), formattedCanShareFolder: yesOrNo(getCanShareFolder(user)), + rowClassName: user.enabled ? '' : 'is-disabled', }; }); return view; diff --git a/packages/server/src/views/index/users.mustache b/packages/server/src/views/index/users.mustache index 5d59b2528..c270ba766 100644 --- a/packages/server/src/views/index/users.mustache +++ b/packages/server/src/views/index/users.mustache @@ -1,5 +1,6 @@
Total Size | Max Total Size | Can share | -Is admin? | -Enabled? | -Actions | {{#users}} -||||
---|---|---|---|---|---|---|---|---|---|
{{full_name}} | +|||||||||
{{displayName}} | {{email}} | {{formattedAccountType}} | {{formattedItemMaxSize}} | {{formattedTotalSize}} ({{formattedTotalSizePercent}}) | {{formattedMaxTotalSize}} | {{formattedCanShareFolder}} | -{{is_admin}} | -{{enabled}} | -Edit |