Move display_graphs into AppComposer
This commit is contained in:
@@ -33,8 +33,10 @@ class AppComposer
|
||||
$view->withAppAnalyticsPiwikUrl(Setting::get('app_analytics_piwik_url'));
|
||||
$view->withAppAnalyticsPiwikSiteId(Setting::get('app_analytics_piwik_siteid'));
|
||||
$view->withAppBanner(Setting::get('app_banner'));
|
||||
$view->withAppBannerStyleFullWidth(Setting::get('style_fullwidth_header'));
|
||||
$view->withAppBannerType(Setting::get('app_banner_type'));
|
||||
$view->withAppDomain(Setting::get('app_domain'));
|
||||
$view->withAppGraphs(Setting::get('display_graphs'));
|
||||
$view->withAppLocale(Setting::get('app_locale'));
|
||||
$view->withAppName(Setting::get('app_name'));
|
||||
$view->withAppStylesheet(Setting::get('app_stylesheet'));
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="hidden" value="0" name="display_graphs">
|
||||
<input type="checkbox" value="1" name="display_graphs" {{ Setting::get('display_graphs') ? 'checked' : null }}>
|
||||
<input type="checkbox" value="1" name="display_graphs" {{ $app_graphs ? 'checked' : null }}>
|
||||
{{ trans('forms.settings.app-setup.display-graphs') }}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if($display_metrics && Setting::get('display_graphs'))
|
||||
@if($display_metrics && $app_graphs)
|
||||
<div class="section-metrics">
|
||||
@include('partials.metrics')
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user