feat: model file is lora

This commit is contained in:
jialin
2026-05-25 13:56:44 +08:00
committed by jialin
parent f0a1dad48e
commit d99c25dd03
7 changed files with 26 additions and 1 deletions
@@ -98,7 +98,7 @@ const getResolvedPath = (pathList: string[]) => {
const setActionList = (record: ListItem) => {
return _.filter(modelFileActions, (item: { key: string }) => {
if (item.key === 'deploy') {
return record.state === ModelfileStateMap.Ready;
return record.state === ModelfileStateMap.Ready && !record.is_lora;
}
return true;
});
@@ -244,6 +244,11 @@ const ResolvedPathColumn = (props: { record: ListItem }) => {
</span>
</AutoTooltip>
</TextWrapper>
{record.is_lora && (
<FilesTag color="purple" variant="outlined">
<span style={{ opacity: 1 }}>LoRA</span>
</FilesTag>
)}
<RenderParts record={record}></RenderParts>
</PathWrapper>
)