Skip to content

Commit

Permalink
showModuleStatusToggle on modules pages doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
jorikfon committed Sep 17, 2024
1 parent 164089a commit 8cefad4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/AdminCabinet/Controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ protected function prepareView(): void
}
$this->view->module = $module->toArray();
$this->view->globalModuleUniqueId = $module->uniqid;
$this->view->showModuleStatusToggle = $this->showModuleStatusToggle??true;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/AdminCabinet/Views/layouts/main.volt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{%set contentClass='grey' %}
{% endif %}
<div class="ui {{ contentClass}} loading segment" id="content-frame">
{% if (isExternalModuleController) %}
{% if (isExternalModuleController AND showModuleStatusToggle) %}
{{ partial("partials/modulesStatusToggle") }}
{% endif %}
<div id="ajax-messages"></div>
Expand Down

0 comments on commit 8cefad4

Please sign in to comment.