mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
add 'cmd' parameter to /api/run-command for debugging purposes (easier filtering and visual inspection of run-command calls)
This commit is contained in:
+4
-2
@@ -396,7 +396,7 @@ class Screen {
|
|||||||
});
|
});
|
||||||
this.filterRunning = mobx.observable.box(false, {
|
this.filterRunning = mobx.observable.box(false, {
|
||||||
name: "screen-filter-running",
|
name: "screen-filter-running",
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
dispose() {}
|
dispose() {}
|
||||||
@@ -3724,7 +3724,9 @@ class Model {
|
|||||||
console.trace();
|
console.trace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let url = new URL(GlobalModel.getBaseHostPort() + "/api/run-command");
|
// adding cmdStr for debugging only (easily filter run-command calls in the network tab of debugger)
|
||||||
|
let cmdStr = cmdPk.metacmd + (cmdPk.metasubcmd ? ":" + cmdPk.metasubcmd : "");
|
||||||
|
let url = new URL(GlobalModel.getBaseHostPort() + "/api/run-command?cmd=" + cmdStr);
|
||||||
let fetchHeaders = this.getFetchHeaders();
|
let fetchHeaders = this.getFetchHeaders();
|
||||||
let prtn = fetch(url, {
|
let prtn = fetch(url, {
|
||||||
method: "post",
|
method: "post",
|
||||||
|
|||||||
Reference in New Issue
Block a user