mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-18 21:38:57 +08:00
feat: change tensorrt button logic (#10805)
This commit is contained in:
parent
c327936db1
commit
2cef8dcea4
1 changed files with 2 additions and 5 deletions
|
|
@ -192,7 +192,7 @@ const buttons = [
|
|||
{
|
||||
label: i18n.global.t('commons.button.start'),
|
||||
disabled: (row: AI.TensorRTLLM) => {
|
||||
return row.status === 'running';
|
||||
return row.status === 'Running';
|
||||
},
|
||||
click: (row: AI.TensorRTLLM) => {
|
||||
operate(row, 'start');
|
||||
|
|
@ -201,7 +201,7 @@ const buttons = [
|
|||
{
|
||||
label: i18n.global.t('commons.button.stop'),
|
||||
disabled: (row: AI.TensorRTLLM) => {
|
||||
return row.status !== 'running';
|
||||
return row.status !== 'Running';
|
||||
},
|
||||
click: (row: AI.TensorRTLLM) => {
|
||||
operate(row, 'stop');
|
||||
|
|
@ -209,9 +209,6 @@ const buttons = [
|
|||
},
|
||||
{
|
||||
label: i18n.global.t('commons.button.restart'),
|
||||
disabled: (row: AI.TensorRTLLM) => {
|
||||
return row.status !== 'running';
|
||||
},
|
||||
click: (row: AI.TensorRTLLM) => {
|
||||
operate(row, 'restart');
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue