|
|
|
@ -235,7 +235,7 @@ export default function TestEdit() { |
|
|
|
Открыть |
|
|
|
Открыть |
|
|
|
</Button> |
|
|
|
</Button> |
|
|
|
)} |
|
|
|
)} |
|
|
|
{record.id !== test.id && ( |
|
|
|
{(record.id !== test.id || !record.is_active) && ( |
|
|
|
<Button |
|
|
|
<Button |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
type={record.is_active ? 'default' : 'primary'} |
|
|
|
type={record.is_active ? 'default' : 'primary'} |
|
|
|
|