Updates: Allow automatic display of keys/Copy button ack

This commit is contained in:
2026-03-12 17:41:54 -05:00
parent e5c229381b
commit db97652bc2
12 changed files with 518 additions and 182 deletions
+13 -2
View File
@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace MageSail\Magesail\Block\Adminhtml;
use Magento\Backend\Block\Template;
use Magento\Backend\Block\Template\Context;
use MageSail\Magesail\Model\TunnelStatus;
class Tunnel extends Template
@@ -12,7 +13,7 @@ class Tunnel extends Template
private const LOG_TAIL_LINES = 40;
public function __construct(
Template\Context $context,
Context $context,
private readonly TunnelStatus $tunnelStatus,
array $data = []
) {
@@ -34,7 +35,17 @@ class Tunnel extends Template
public function getStatusUrl(): string
{
return $this->getUrl('*/*/status', ['_query' => ['form_key' => $this->getFormKey()]]);
return $this->getUrl('*/*/status');
}
public function getIndexUrl(): string
{
return $this->getUrl('*/*/index');
}
public function getLogtailUrl(): string
{
return $this->getUrl('*/*/logtail');
}
public function getFormKey(): string