css tweaks 7

This commit is contained in:
Andy Miller
2025-10-17 16:00:46 -06:00
parent db72e521b4
commit a73d5aa650
2 changed files with 17 additions and 4 deletions

View File

@@ -487,7 +487,15 @@ export default class SafeUpgrade {
this.stopPolling();
this.jobId = null;
const body = { decisions: this.decisions };
const decisionFields = {};
Object.keys(this.decisions || {}).forEach((key) => {
const value = this.decisions[key];
if (value) {
decisionFields[`decisions[${key}]`] = value;
}
});
const body = decisionFields;
request(this.urls.start, { method: 'post', body }, (response) => {
if (!this.active) {

View File

@@ -4905,9 +4905,14 @@ var SafeUpgrade = /*#__PURE__*/function () {
this.buttons.start.prop('disabled', true);
this.stopPolling();
this.jobId = null;
var body = {
decisions: this.decisions
};
var decisionFields = {};
Object.keys(this.decisions || {}).forEach(function (key) {
var value = _this4.decisions[key];
if (value) {
decisionFields["decisions[".concat(key, "]")] = value;
}
});
var body = decisionFields;
utils_request(this.urls.start, {
method: 'post',
body: body