From d1019735f7eb6b2d2ca7e924cbd94bc9b0a8e4b0 Mon Sep 17 00:00:00 2001 From: Hamza HRAMCHI <hamza.hramchi@xelians.fr> Date: Mon, 27 Feb 2023 11:41:12 +0100 Subject: [PATCH] FIX #23981 TIME 0:05 revert code --- src/frontend/app/app.component.ts | 32 ++----------------------------- 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/src/frontend/app/app.component.ts b/src/frontend/app/app.component.ts index d3bb4a2be3..76a921a513 100755 --- a/src/frontend/app/app.component.ts +++ b/src/frontend/app/app.component.ts @@ -1,4 +1,4 @@ -import { Component, HostListener, OnInit, ViewEncapsulation } from '@angular/core'; +import { Component, ViewEncapsulation } from '@angular/core'; import { CookieService } from 'ngx-cookie-service'; import { SignaturesContentService } from './service/signatures.service'; import { HttpClient } from '@angular/common/http'; @@ -19,7 +19,7 @@ import { Platform } from '@ionic/angular'; styleUrls: ['app.component.scss'] }) -export class AppComponent implements OnInit { +export class AppComponent { isPortrait: boolean; debugMode: boolean; showLeftContent: boolean = false; @@ -54,34 +54,6 @@ export class AppComponent implements OnInit { } - // The event listens for window resize and checks if the device resolution has changed - @HostListener('window:resize', ['$event']) - onResize() { - if (window.matchMedia('(resolution: ' + window.devicePixelRatio + 'dppx)').matches) { - if (window.devicePixelRatio >= 1.25) { - this.signaturesService.mobileMode = true; - setTimeout(() => { - $('.right-menu-responsive').css('--max-width', 'none'); - }, 0); - } else { - this.signaturesService.mobileMode = false; - } - } - } - - ngOnInit(): void { - if (window.matchMedia('(resolution: ' + window.devicePixelRatio + 'dppx)').matches) { - if (window.devicePixelRatio >= 1.25) { - this.signaturesService.mobileMode = true; - setTimeout(() => { - $('.right-menu-responsive').css('--max-width', 'none'); - }, 0); - } else { - this.signaturesService.mobileMode = false; - } - } - } - allowedRoute() { const route = this.router.url.split('?')[0]; const allowedRoutes: string[] = ['/', '/login', '/forgot-password', '/update-password', '/password-modification']; -- GitLab