Поправил запрос
This commit is contained in:
parent
0e84517190
commit
dda51972bb
@ -47,6 +47,7 @@ export default function Commands() {
|
|||||||
let runCommand = async () => {
|
let runCommand = async () => {
|
||||||
let url = `http://fmw.sipachev.sv/system-monitoring/commands/${command.name}/run`
|
let url = `http://fmw.sipachev.sv/system-monitoring/commands/${command.name}/run`
|
||||||
let data = command2data[command.name] || {}
|
let data = command2data[command.name] || {}
|
||||||
|
data['requestId'] = '123';
|
||||||
let response = await fetch(url, {
|
let response = await fetch(url, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -83,7 +83,7 @@ export default function Processes() {
|
|||||||
let canPause = (process: ProcessInterface) => !isFinished(process) && process.progress && !process.pausedAt
|
let canPause = (process: ProcessInterface) => !isFinished(process) && process.progress && !process.pausedAt
|
||||||
let canRepeat = (process: ProcessInterface) => isFinished(process)
|
let canRepeat = (process: ProcessInterface) => isFinished(process)
|
||||||
let canStop = (process: ProcessInterface) => !isFinished(process) && process.progress
|
let canStop = (process: ProcessInterface) => !isFinished(process) && process.progress
|
||||||
let canKill = (process: ProcessInterface) => !isFinished(process)
|
let canKill = (process: ProcessInterface) => !isFinished(process) && process.startedAt
|
||||||
let progress = (progress: ProcessProgressInterface) => progress.progress / progress.total * 100
|
let progress = (progress: ProcessProgressInterface) => progress.progress / progress.total * 100
|
||||||
|
|
||||||
let status = (process: ProcessInterface): Status => {
|
let status = (process: ProcessInterface): Status => {
|
||||||
|
Loading…
Reference in New Issue
Block a user