disable displaying project usage stats if usage stats disabled

This commit is contained in:
Damodar Lohani
2021-01-13 06:50:27 +05:45
parent 4534064afe
commit 1fcd575f56
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ App::get('/console/home')
/** @var Utopia\View $layout */
$page = new View(__DIR__.'/../../views/console/home/index.phtml');
$page->setParam('usageStatsEnabled',App::getEnv('_APP_USAGE_STATS','enabled') == 'enabled');
$layout
->setParam('title', APP_NAME.' - Console')
->setParam('body', $page);
+2 -1
View File
@@ -1,5 +1,6 @@
<?php
$graph = $this->getParam('graph', false);
$usageStatsEnabled = $this->getParam('usageStatsEnabled',true);
?>
<div class="cover margin-bottom-small">
@@ -68,7 +69,7 @@ $graph = $this->getParam('graph', false);
data-param-project-id="{{router.params.project}}"
data-param-range="30d">
<?php if (!$graph) : ?>
<?php if (!$graph && $usageStatsEnabled) : ?>
<div class="box dashboard">
<div class="row responsive">
<div class="col span-9">