fix: apikey custom tag
This commit is contained in:
@@ -9,6 +9,7 @@ export interface ListItem {
|
|||||||
allowed_model_names: string[];
|
allowed_model_names: string[];
|
||||||
custom?: string;
|
custom?: string;
|
||||||
scope?: string[];
|
scope?: string[];
|
||||||
|
is_custom?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FormData {
|
export interface FormData {
|
||||||
|
|||||||
@@ -62,18 +62,20 @@ const useModelsColumns = ({
|
|||||||
<AutoTooltip ghost style={{ maxWidth: 400 }}>
|
<AutoTooltip ghost style={{ maxWidth: 400 }}>
|
||||||
<span className="text-primary">{text}</span>
|
<span className="text-primary">{text}</span>
|
||||||
</AutoTooltip>
|
</AutoTooltip>
|
||||||
<Tag
|
{record.is_custom && (
|
||||||
style={{
|
<Tag
|
||||||
marginLeft: 8,
|
style={{
|
||||||
borderRadius: 12,
|
marginLeft: 8,
|
||||||
color: 'var(--ant-color-text-tertiary)',
|
borderRadius: 12,
|
||||||
borderColor: 'var(--ant-color-split)',
|
color: 'var(--ant-color-text-tertiary)',
|
||||||
backgroundColor: 'transparent'
|
borderColor: 'var(--ant-color-split)',
|
||||||
}}
|
backgroundColor: 'transparent'
|
||||||
variant="outlined"
|
}}
|
||||||
>
|
variant="outlined"
|
||||||
{intl.formatMessage({ id: 'playground.params.custom' })}
|
>
|
||||||
</Tag>
|
{intl.formatMessage({ id: 'playground.params.custom' })}
|
||||||
|
</Tag>
|
||||||
|
)}
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user