Skip to content

Commit bfa2eb4

Browse files
feat: change tensorrt button logic (#10805)
1 parent be27983 commit bfa2eb4

File tree

1 file changed

+2
-5
lines changed
  • frontend/src/views/ai/model/tensorrt

1 file changed

+2
-5
lines changed

frontend/src/views/ai/model/tensorrt/index.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ const buttons = [
192192
{
193193
label: i18n.global.t('commons.button.start'),
194194
disabled: (row: AI.TensorRTLLM) => {
195-
return row.status === 'running';
195+
return row.status === 'Running';
196196
},
197197
click: (row: AI.TensorRTLLM) => {
198198
operate(row, 'start');
@@ -201,17 +201,14 @@ const buttons = [
201201
{
202202
label: i18n.global.t('commons.button.stop'),
203203
disabled: (row: AI.TensorRTLLM) => {
204-
return row.status !== 'running';
204+
return row.status !== 'Running';
205205
},
206206
click: (row: AI.TensorRTLLM) => {
207207
operate(row, 'stop');
208208
},
209209
},
210210
{
211211
label: i18n.global.t('commons.button.restart'),
212-
disabled: (row: AI.TensorRTLLM) => {
213-
return row.status !== 'running';
214-
},
215212
click: (row: AI.TensorRTLLM) => {
216213
operate(row, 'restart');
217214
},

0 commit comments

Comments
 (0)