mirror of
https://github.com/bknd-io/bknd.git
synced 2026-10-25 11:48:31 +00:00
ui: reflect readonly mode by hiding controls + various small styling fixes
This commit is contained in:
18 files changed
+153
-74
No files matched your search
@@ -169,6 +169,8 @@ function EntityCreateButton({ entity }: { entity: Entity }) {
|
||||
media: b.app.config.media.entity_name,
|
||||
};
|
||||
if (system.users === entity.name) {
|
||||
if (b.readonly) return null;
|
||||
|
||||
return (
|
||||
<Button onClick={createUserModal.open} variant="primary">
|
||||
New User
|
||||
|
||||
Reference in new issue
Block a user