mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 10:56:08 +01:00
css tweaks 7
This commit is contained in:
@@ -487,7 +487,15 @@ export default class SafeUpgrade {
|
|||||||
this.stopPolling();
|
this.stopPolling();
|
||||||
this.jobId = null;
|
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) => {
|
request(this.urls.start, { method: 'post', body }, (response) => {
|
||||||
if (!this.active) {
|
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.buttons.start.prop('disabled', true);
|
||||||
this.stopPolling();
|
this.stopPolling();
|
||||||
this.jobId = null;
|
this.jobId = null;
|
||||||
var body = {
|
var decisionFields = {};
|
||||||
decisions: this.decisions
|
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, {
|
utils_request(this.urls.start, {
|
||||||
method: 'post',
|
method: 'post',
|
||||||
body: body
|
body: body
|
||||||
|
|||||||
Reference in New Issue
Block a user