fix: cluster apis
This commit is contained in:
@@ -47,6 +47,7 @@ const AddWorker: React.FC<ViewModalProps> = (props) => {
|
||||
return commandCode?.registerWorker({
|
||||
server: registrationInfo.server_url || origin,
|
||||
tag: tag,
|
||||
image: registrationInfo.image,
|
||||
token: registrationInfo.token || '${token}',
|
||||
workerip: '${workerip}'
|
||||
});
|
||||
|
||||
@@ -10,6 +10,7 @@ import React, { useEffect, useState } from 'react';
|
||||
import {
|
||||
WORKERS_API,
|
||||
deleteWorker,
|
||||
downloadWorkerPrivateKey,
|
||||
queryWorkersList,
|
||||
updateWorker
|
||||
} from '../apis';
|
||||
@@ -144,6 +145,9 @@ const Workers: React.FC = () => {
|
||||
if (val === 'details') {
|
||||
handleViewDetail(record);
|
||||
}
|
||||
if (val === 'download_ssh_key') {
|
||||
downloadWorkerPrivateKey(record.id);
|
||||
}
|
||||
});
|
||||
|
||||
const renderEmpty = (type?: string) => {
|
||||
|
||||
Reference in New Issue
Block a user