fix: improve asset handling, logging, and ui conditions

Refactored asset handling to support multiple CSS entries and fixed context handling in authenticator when executed through mcp. Adjusted UI readonly conditions.
This commit is contained in:
dswbx
2025-09-16 16:04:09 +02:00
parent 70eaa22327
commit a0b2dde034
6 changed files with 23 additions and 18 deletions

View File

@@ -68,11 +68,11 @@ function AuthRolesEditInternal({ params }) {
>
<IconButton Icon={TbDots} />
</Dropdown>
!readonly && (
<Button variant="primary" onClick={handleUpdate}>
Update
</Button>
)
{!readonly && (
<Button variant="primary" onClick={handleUpdate}>
Update
</Button>
)}
</>
}
className="pl-3"

View File

@@ -169,8 +169,6 @@ 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