diff --git a/_dev/src/ts/components/ProcessContainer.ts b/_dev/src/ts/components/ProcessContainer.ts index d30f1f01ed..b8f730d51b 100644 --- a/_dev/src/ts/components/ProcessContainer.ts +++ b/_dev/src/ts/components/ProcessContainer.ts @@ -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 => { diff --git a/_dev/src/ts/pages/UpdatePageBackup.ts b/_dev/src/ts/pages/UpdatePageBackup.ts index 7c13c03efb..25901b823e 100644 --- a/_dev/src/ts/pages/UpdatePageBackup.ts +++ b/_dev/src/ts/pages/UpdatePageBackup.ts @@ -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 }); } diff --git a/_dev/src/ts/pages/UpdatePageUpdate.ts b/_dev/src/ts/pages/UpdatePageUpdate.ts index cb817025d2..0b6a0819b1 100644 --- a/_dev/src/ts/pages/UpdatePageUpdate.ts +++ b/_dev/src/ts/pages/UpdatePageUpdate.ts @@ -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 }); } diff --git a/_dev/src/ts/types/Process.ts b/_dev/src/ts/types/Process.ts index 1ad29bd887..7199f66540 100644 --- a/_dev/src/ts/types/Process.ts +++ b/_dev/src/ts/types/Process.ts @@ -7,7 +7,7 @@ type ProgressTrackerCallbacks = { }; type ProcessContainerCallbacks = { - onError: () => void, + onError: () => void; }; export type { ProgressTrackerCallbacks, ProcessContainerCallbacks }; diff --git a/_dev/src/ts/utils/Process.ts b/_dev/src/ts/utils/Process.ts index d626577fe7..dc82dc714b 100644 --- a/_dev/src/ts/utils/Process.ts +++ b/_dev/src/ts/utils/Process.ts @@ -3,7 +3,7 @@ import { ApiResponseAction } from '../types/apiTypes'; import { ProgressTrackerCallbacks } from '../types/Process'; export default class Process { - #callbacks: Callbacks; + #callbacks: ProgressTrackerCallbacks; /** * @constructor diff --git a/classes/Router/Routes.php b/classes/Router/Routes.php index d2ddf3e6fd..ee3a175f48 100644 --- a/classes/Router/Routes.php +++ b/classes/Router/Routes.php @@ -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'; @@ -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'; } diff --git a/views/templates/steps/backup-options.html.twig b/views/templates/steps/backup-options.html.twig index 293c436ba3..3ec0821233 100644 --- a/views/templates/steps/backup-options.html.twig +++ b/views/templates/steps/backup-options.html.twig @@ -17,7 +17,7 @@ {% if backup_completed %}
{% 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({}),