Skip to content

Commit

Permalink
Rename configuration variable for only display incidents option
Browse files Browse the repository at this point in the history
  • Loading branch information
rarguelloF committed Dec 4, 2017
1 parent 2e21506 commit 104ae85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/StatusPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private function showIndexByQuantity()
*/
public function showIndex()
{
$only_display_incidents = Config::get('setting.app_only_display_incidents', false);
$only_display_incidents = Config::get('setting.only_display_incidents', false);

if ($only_display_incidents) {
return $this->showIndexByQuantity();
Expand Down
4 changes: 2 additions & 2 deletions resources/views/dashboard/settings/app-setup.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@
<div class="col-xs-12">
<div class="checkbox">
<label>
<input type="hidden" value="0" name="app_only_display_incidents">
<input type="checkbox" value="1" name="app_only_display_incidents" {{ Config::get('setting.app_only_display_incidents') ? 'checked' : null }}>
<input type="hidden" value="0" name="only_display_incidents">
<input type="checkbox" value="1" name="only_display_incidents" {{ $only_display_incidents ? 'checked' : null }}>
{{ trans('forms.settings.app-setup.only_display_incidents') }}
</label>
</div>
Expand Down

0 comments on commit 104ae85

Please sign in to comment.