fix: details layout
This commit is contained in:
@@ -13,6 +13,12 @@ const actionList = [
|
||||
label: 'common.button.edit',
|
||||
icon: icons.EditOutlined
|
||||
},
|
||||
{
|
||||
label: 'common.button.stop',
|
||||
key: 'stop',
|
||||
icon: icons.Stop,
|
||||
status: [BenchmarkStatusValueMap.Claimed, BenchmarkStatusValueMap.Running]
|
||||
},
|
||||
{
|
||||
label: 'common.button.viewlog',
|
||||
key: 'viewlog',
|
||||
@@ -55,7 +61,7 @@ const RowActions: React.FC<RowActionsProps> = (props) => {
|
||||
const { onDownloadLog, contextHolder } = useDownloadLogs();
|
||||
|
||||
const actions = actionList.filter((action) => {
|
||||
if (action.key === 'viewlog' || action.key === 'download') {
|
||||
if (action.status && action.status.length > 0) {
|
||||
return action.status?.includes(record.state);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user