Skip to content

Commit

Permalink
Remove "Make Viewable" #1636
Browse files Browse the repository at this point in the history
  • Loading branch information
olatechpro committed Aug 12, 2024
1 parent 428edd3 commit c2a2b7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion modules/async-notifications/async-notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ public function __construct()
'enabled' => 'on',
],
'options_page' => false,
'autoload' => true,
];

// Apply a filter to the default options
Expand Down
8 changes: 6 additions & 2 deletions modules/settings/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,14 +457,18 @@ public function options_page_controller()
}

//force notification tab if dependent tab is enabled
if ($mod_data->slug == 'async-notifications' && $mod_data->options->enabled === 'on') {
$all_modules['notifications']->options->enabled = 'on';
}

if (isset($mod_data->notification_options)) {
if ($all_modules['notifications']->options->enabled === 'on') {
$all_modules['improved_notifications']->options->enabled = 'on';
$all_modules['async_notifications']->options->enabled = 'on';
//$all_modules['async_notifications']->options->enabled = 'on';
$all_modules['notifications']->options->enabled = 'on';
} else {
$all_modules['improved_notifications']->options->enabled = 'off';
$all_modules['async_notifications']->options->enabled = 'off';
//$all_modules['async_notifications']->options->enabled = 'off';
$all_modules['notifications']->options->enabled = 'off';
}
break;
Expand Down

0 comments on commit c2a2b7f

Please sign in to comment.