Skip to content

Commit

Permalink
Disable main navigation by default
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin committed Feb 1, 2024
1 parent f94545b commit e815d04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static function onTopMenuInit($event)
$module = Yii::$app->getModule('tasks');


if (!(int)$module->settings->get('showGlobalMenuItem', 1) || Yii::$app->user->isGuest) {
if (!$module->settings->get('showGlobalMenuItem', false) || Yii::$app->user->isGuest) {
return;
}

Expand Down
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changelog
1.8.5 (Unreleased)
-------------------------
- Fix #249: Fix replaced method `friendship\Module::isEnabled()`
- Enh #229: Disable main navigation by default

1.8.4 (December 21, 2023)
-------------------------
Expand Down
2 changes: 1 addition & 1 deletion models/SnippetModuleSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class SnippetModuleSettings extends Model
/**
* @var int defines if the global task menu item should be displayed
*/
public $showGlobalMenuItem = 1;
public $showGlobalMenuItem = false;
public $menuSortOrder = 500;

/**
Expand Down

0 comments on commit e815d04

Please sign in to comment.