diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index 1fb82bb..d4ec07a 100644 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -122,6 +122,11 @@ Magento\Config\Model\Config\Source\Yesno Enable view transitions when loading pages on the same domain. + + + Magento\Config\Model\Config\Source\Yesno + Disable if you don't want the view transitions, or when using the Mage-OS Admin Theme or any other Admin theme that has View Transitions built in + Magento\Config\Model\Config\Source\Yesno diff --git a/etc/config.xml b/etc/config.xml index 66e926a..e209e9f 100644 --- a/etc/config.xml +++ b/etc/config.xml @@ -31,6 +31,7 @@ productalert 1 + 1 0 diff --git a/view/adminhtml/layout/default.xml b/view/adminhtml/layout/default.xml index d405936..7f49306 100644 --- a/view/adminhtml/layout/default.xml +++ b/view/adminhtml/layout/default.xml @@ -2,9 +2,10 @@ - \MageOS\ThemeOptimization\ViewModel\ViewTransitions diff --git a/view/base/templates/view-transitions.phtml b/view/base/templates/view-transitions.phtml index cb53f4e..638c406 100644 --- a/view/base/templates/view-transitions.phtml +++ b/view/base/templates/view-transitions.phtml @@ -1,19 +1,16 @@ -getViewModel(); -if (!$viewModel->isEnabled()) { - return; -} $style = <<