Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: Add is_immutable gate for model edit button.
  • Loading branch information
DrJKL committed Dec 2, 2025
commit 004f243025a2ef9cdd353eba2d84735072aaa30c
2 changes: 1 addition & 1 deletion src/platform/assets/components/AssetCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

<AssetBadgeGroup :badges="asset.badges" />
<IconGroup
v-if="flags.assetUpdateOptionsEnabled"
v-if="flags.assetUpdateOptionsEnabled && !(asset.is_immutable ?? true)"
:class="
cn(
'absolute top-2 right-2 invisible group-hover:visible',
Expand Down
1 change: 1 addition & 0 deletions src/platform/assets/schemas/assetSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const zAsset = z.object({
preview_url: z.string().optional(),
created_at: z.string(),
updated_at: z.string().optional(),
is_immutable: z.boolean().optional(),
last_access_time: z.string().optional(),
user_metadata: z.record(z.unknown()).optional() // API allows arbitrary key-value pairs
})
Expand Down