From dc6ce0d62d87b832f73d20c96c3e1441ecaa96c4 Mon Sep 17 00:00:00 2001 From: Willem Poortman Date: Tue, 21 Mar 2023 10:03:44 +0100 Subject: [PATCH] Added a custom onPageExpired handler callback --- src/view/frontend/layout/default_hyva.xml | 4 +- .../page/js/magewire/plugin/error.phtml | 50 +++++++++++++++++++ .../page/js/magewire/plugin/exception.phtml | 46 ----------------- 3 files changed, 52 insertions(+), 48 deletions(-) create mode 100644 src/view/frontend/templates/page/js/magewire/plugin/error.phtml delete mode 100644 src/view/frontend/templates/page/js/magewire/plugin/exception.phtml diff --git a/src/view/frontend/layout/default_hyva.xml b/src/view/frontend/layout/default_hyva.xml index fa14b27..ae32e89 100644 --- a/src/view/frontend/layout/default_hyva.xml +++ b/src/view/frontend/layout/default_hyva.xml @@ -46,8 +46,8 @@ ifconfig="dev/magewire/loader/enable" template="Magewirephp_Magewire::page/js/magewire/plugin/loader.phtml"/> - diff --git a/src/view/frontend/templates/page/js/magewire/plugin/error.phtml b/src/view/frontend/templates/page/js/magewire/plugin/error.phtml new file mode 100644 index 0000000..17dfd03 --- /dev/null +++ b/src/view/frontend/templates/page/js/magewire/plugin/error.phtml @@ -0,0 +1,50 @@ +getViewModel(); +$messages = $block->getData('status_messages'); +?> + + diff --git a/src/view/frontend/templates/page/js/magewire/plugin/exception.phtml b/src/view/frontend/templates/page/js/magewire/plugin/exception.phtml deleted file mode 100644 index a8ded6d..0000000 --- a/src/view/frontend/templates/page/js/magewire/plugin/exception.phtml +++ /dev/null @@ -1,46 +0,0 @@ -getViewModel(); -$messages = $block->getData('status_messages'); -?> -isProductionMode()): ?> - -