Updates: Allow automatic display of keys/Copy button ack
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user