1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-24 14:31:42 +01:00

Correzioni minori per informazioni su Services

This commit is contained in:
Dasc3er 2021-10-04 09:10:38 +02:00
parent aa9066aea4
commit 107229de44
2 changed files with 3 additions and 1 deletions

View File

@ -184,12 +184,14 @@ if (Services::isEnabled()) {
</div>
</div>';
} else {
/*
echo '
<div class="col-md-12 col-lg-6">
<div class="alert alert-warning" role="alert">
<i class="fa fa-warning"></i> '.tr("Configurazione per l'accesso Services non completata correttamente").'. '.tr('Per abilitare i servizi, compilare l\'impostazione "OSMCloud Services API Token"').'.
</div>
</div>';
*/
}
echo '

View File

@ -38,7 +38,7 @@ class ServicesHook extends Manager
return [
'icon' => 'fa fa-refresh text-warning',
'message' => $message,
'show' => !$risorse_in_scadenza->isEmpty(),
'show' => Services::isEnabled() && !$risorse_in_scadenza->isEmpty(),
];
}