Skip to content

Commit

Permalink
fix: remove loading contacts-index style
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <[email protected]>
  • Loading branch information
solracsf authored Dec 5, 2024
1 parent 2f0282a commit eca822f
Showing 1 changed file with 11 additions and 42 deletions.
53 changes: 11 additions & 42 deletions lib/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use OCA\Contacts\Service\GroupSharingService;
use OCA\Contacts\Service\SocialApiService;
use OCP\App\IAppManager;

use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IConfig;
Expand All @@ -22,48 +21,19 @@
use OCP\Util;

class PageController extends Controller {
/** @var IConfig */
private $config;

/** @var IInitialStateService */
private $initialStateService;

/** @var IFactory */
private $languageFactory;

/** @var IUserSession */
private $userSession;

/** @var SocialApiService */
private $socialApiService;

/** @var IAppManager */
private $appManager;

/** @var CompareVersion */
private $compareVersion;

private GroupSharingService $groupSharingService;

public function __construct(IRequest $request,
IConfig $config,
IInitialStateService $initialStateService,
IFactory $languageFactory,
IUserSession $userSession,
SocialApiService $socialApiService,
IAppManager $appManager,
CompareVersion $compareVersion,
GroupSharingService $groupSharingService) {
public function __construct(
IRequest $request,
private IConfig $config,
private IInitialStateService $initialStateService,
private IFactory $languageFactory,
private IUserSession $userSession,
private SocialApiService $socialApiService,
private IAppManager $appManager,
private CompareVersion $compareVersion,
private GroupSharingService $groupSharingService,
) {
parent::__construct(Application::APP_ID, $request);

$this->config = $config;
$this->initialStateService = $initialStateService;
$this->languageFactory = $languageFactory;
$this->userSession = $userSession;
$this->socialApiService = $socialApiService;
$this->appManager = $appManager;
$this->compareVersion = $compareVersion;
$this->groupSharingService = $groupSharingService;
}

/**
Expand Down Expand Up @@ -107,7 +77,6 @@ public function index(): TemplateResponse {
$this->initialStateService->provideInitialState(Application::APP_ID, 'isCirclesEnabled', $isCirclesEnabled && $isCircleVersionCompatible);
$this->initialStateService->provideInitialState(Application::APP_ID, 'isTalkEnabled', $isTalkEnabled && $isTalkVersionCompatible);

Util::addStyle(Application::APP_ID, 'contacts-index');
Util::addStyle(Application::APP_ID, 'contacts-main');
Util::addScript(Application::APP_ID, 'contacts-main');

Expand Down

0 comments on commit eca822f

Please sign in to comment.