mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-26 00:36:31 +02:00
css tweaks 7
This commit is contained in:
@@ -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) {
|
||||
|
||||
11
themes/grav/js/admin.min.js
vendored
11
themes/grav/js/admin.min.js
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user