Skip to content

Commit

Permalink
Light fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Quetzacoalt91 committed Dec 13, 2024
1 parent b8a5187 commit 42d7480
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _dev/src/ts/components/ProcessContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class ProcessContainer implements DomLifecycle {

constructor(
private readonly initialAction: string,
private readonly callbacks: ProcessContainerCallbacks,
private readonly callbacks: ProcessContainerCallbacks
) {}

public mount = async (): Promise<void> => {
Expand Down
2 changes: 1 addition & 1 deletion _dev/src/ts/pages/UpdatePageBackup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class UpdatePageBackup extends UpdatePage {
const initialAction = stepContent.dataset.initialProcessAction!;

this.#processContainer = new ProcessContainer(initialAction, {
onError: this.#onError,
onError: this.#onError
});
}

Expand Down
2 changes: 1 addition & 1 deletion _dev/src/ts/pages/UpdatePageUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class UpdatePageUpdate extends UpdatePage {
const initialAction = stepContent.dataset.initialProcessAction!;

this.#processContainer = new ProcessContainer(initialAction, {
onError: this.#onError,
onError: this.#onError
});
}

Expand Down
2 changes: 1 addition & 1 deletion _dev/src/ts/types/Process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type ProgressTrackerCallbacks = {
};

type ProcessContainerCallbacks = {
onError: () => void,
onError: () => void;
};

export type { ProgressTrackerCallbacks, ProcessContainerCallbacks };
2 changes: 1 addition & 1 deletion _dev/src/ts/utils/Process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ApiResponseAction } from '../types/apiTypes';
import { ProgressTrackerCallbacks } from '../types/Process';

export default class Process {
#callbacks: Callbacks;
#callbacks: ProgressTrackerCallbacks;

/**
* @constructor
Expand Down
4 changes: 3 additions & 1 deletion classes/Router/Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class Routes
/* step: update */
const UPDATE_PAGE_UPDATE = 'update-page-update';
const UPDATE_STEP_UPDATE = 'update-step-update';
const DISPLAY_ERROR_REPORT_MODAL = 'update-step-update-submit-error-report';

/* step: post update */
const UPDATE_PAGE_POST_UPDATE = 'update-page-post-update';
Expand All @@ -50,4 +49,7 @@ class Routes
/* COMMON */
/* logs */
const DOWNLOAD_LOGS = 'download-logs';

/* error reporting */
const DISPLAY_ERROR_REPORT_MODAL = 'update-step-update-submit-error-report';
}
2 changes: 1 addition & 1 deletion views/templates/steps/backup-options.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{% if backup_completed %}
<div class="check-requirements check-requirements--success">
{% include "@ModuleAutoUpgrade/components/alert.html.twig" with {
title: 'Backup completed',
title: 'Backup completed'|trans({}),
message: 'It is available at /your-admin-directory/autoupgrade/backup. You\'re ready to start the update now.'|trans({}),
alertStatus: 'success',
buttonLabel: 'Download backup logs'|trans({}),
Expand Down

0 comments on commit 42d7480

Please sign in to comment.