mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
disable displaying project usage stats if usage stats disabled
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user