add 'cmd' parameter to /api/run-command for debugging purposes (easier filtering and visual inspection of run-command calls)

This commit is contained in:
sawka 2023-12-12 20:37:00 -08:00
parent f442236679
commit b6c880c6ff

View File

@ -396,7 +396,7 @@ class Screen {
});
this.filterRunning = mobx.observable.box(false, {
name: "screen-filter-running",
})
});
}
dispose() {}
@ -3724,7 +3724,9 @@ class Model {
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 prtn = fetch(url, {
method: "post",