Skip to content

Commit

Permalink
[HOTFIX] Always show Dashboard button
Browse files Browse the repository at this point in the history
  • Loading branch information
laurisb committed Jan 27, 2023
1 parent e3a3c4e commit a16d4c2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions p360monitoring.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,11 @@ function p360monitoring_ClientArea(array $params): string
$domain = $params[ProductOptions::DOMAIN];
$activationUrl = UrlHelper::getActivationUrl($license, $domain);
$dashboardUrl = UrlHelper::getDashboardUrl($domain);

if ($license->getActivationInfo()->isActivated()) {
return '<div class="tab-content"><div class="row"><div class="col-sm-3 text-left">' . $translator->translate('p360monitoring_button_license_activated') . '</div></div></div><br/>';
}

$html = '';

if (!$license->isTerminated() && !$license->isSuspended()) {
if ($license->getActivationInfo()->isActivated()) {
$html .= '<div class="tab-content"><div class="row"><div class="col-sm-3 text-left">' . $translator->translate('p360monitoring_button_license_activated') . '</div></div></div><br/>';
} elseif (!$license->isTerminated() && !$license->isSuspended()) {
$html .= '<div class="tab-content"><a class="btn btn-block btn-info" href="' . $activationUrl . '" target="_blank">' . $translator->translate('p360monitoring_button_activate_license') . '</a></div><br/>';
}

Expand Down

0 comments on commit a16d4c2

Please sign in to comment.