Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a333db64 authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽 Committed by Ronak Patel
Browse files

Apply 3 suggestion(s) to 2 file(s)

parent c0234909
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ class BeforeTemplateRenderedListener implements IEventListener {
	private const SNAPPYMAIL_AUTOLOGIN_PWD = '1';
	private IInitialState $initialState;
	private $userId;

	public function __construct($appName, IUserSession $userSession, IRequest $request, ISession $session, IConfig $config, IAppManager $appManager, Util $util, $userId, IInitialState $initialState) {
		$this->appName = $appName;
		$this->userSession = $userSession;
@@ -54,6 +55,7 @@ class BeforeTemplateRenderedListener implements IEventListener {
		if (strpos($pathInfo, '/apps/ecloud-accounts/accounts') !== false) {
			$this->util->addStyle($this->appName, $this->appName . '-userregistration');
		}

		if (($event->getResponse()->getRenderAs() === TemplateResponse::RENDER_AS_USER) && $event->isLoggedIn()) {
			$userLocation = 'USA';
			$this->initialState->provideInitialState('userLocation', $userLocation);
+1 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@
        }
    }
}

[data-object-type="business-banner-important"] a.external {
    background-color: var(--color-primary-element);
    color: var(--color-primary-element-text);