Skip to content

Commit

Permalink
feat: add deployOptionsDocsUrl initial-state
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Borysenko <[email protected]>
  • Loading branch information
andrey18106 committed Jan 20, 2025
1 parent 7cfcf5c commit 7069ce2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Service/ExAppsPageService.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use OCP\App\IAppManager;
use OCP\AppFramework\Services\IInitialState;
use OCP\IConfig;
use OCP\IURLGenerator;
use Psr\Log\LoggerInterface;

class ExAppsPageService {
Expand All @@ -25,6 +26,7 @@ public function __construct(
private readonly IConfig $config,
private readonly IAppManager $appManager,
private readonly LoggerInterface $logger,
private readonly IURLGenerator $urlGenerator,
) {
}

Expand Down Expand Up @@ -61,5 +63,8 @@ public function provideAppApiState(IInitialState $initialState): void {
if ($defaultDaemonConfig !== null) {
$initialState->provideInitialState('defaultDaemonConfig', $defaultDaemonConfig);
}

$deployOptionsDocsUrl = $this->urlGenerator->linkToDocs('admin-deploy-options');
$initialState->provideInitialState('deployOptionsDocsUrl', $deployOptionsDocsUrl);
}
}

0 comments on commit 7069ce2

Please sign in to comment.