Add MailPoet.hasValidMSSKey

I added the property so that we can check all combinations.
Currently it is not used but was added for completeness.
[MAILPOET-5191]
This commit is contained in:
Rostislav Wolny
2023-04-27 14:59:08 +02:00
committed by Veljko V
parent 600c83943c
commit 080b6a57ef
4 changed files with 5 additions and 0 deletions

View File

@@ -162,6 +162,7 @@ class PageRenderer {
'has_premium_support' => $this->subscribersFeature->hasPremiumSupport(),
'has_mss_key_specified' => Bridge::isMSSKeySpecified(),
'mss_key_invalid' => $this->servicesChecker->isMailPoetAPIKeyValid() === false,
'mss_key_valid' => $this->subscribersFeature->hasValidMssKey(),
'mss_key_pending_approval' => $this->servicesChecker->isMailPoetAPIKeyPendingApproval(),
'mss_active' => $this->bridge->isMailpoetSendingServiceEnabled(),
'plugin_partial_key' => $this->servicesChecker->generatePartialApiKey(),