From c2fc2734b521d1ff9498a44d2e0b51020f07694c Mon Sep 17 00:00:00 2001 From: Sieciech Date: Wed, 1 Sep 2021 17:57:04 +0200 Subject: [PATCH] fix lint --- .../src/app/modules/auth/models/person.model.ts | 4 +--- .../profile-edit/profile-edit.component.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/frontend/src/app/modules/auth/models/person.model.ts b/src/frontend/src/app/modules/auth/models/person.model.ts index ef5109a..2e2ffd5 100644 --- a/src/frontend/src/app/modules/auth/models/person.model.ts +++ b/src/frontend/src/app/modules/auth/models/person.model.ts @@ -1,5 +1,3 @@ -import { UserModel } from "./user.model"; - export class PersonModel { id: number; name: string; @@ -13,4 +11,4 @@ export class PersonModel { Object.assign(this, data); } } -} \ No newline at end of file +} diff --git a/src/frontend/src/app/modules/profile/components/profile-edit/profile-edit.component.ts b/src/frontend/src/app/modules/profile/components/profile-edit/profile-edit.component.ts index d60f0a7..8e86b30 100644 --- a/src/frontend/src/app/modules/profile/components/profile-edit/profile-edit.component.ts +++ b/src/frontend/src/app/modules/profile/components/profile-edit/profile-edit.component.ts @@ -1,6 +1,6 @@ -import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from '@angular/core'; +import { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core'; import { DomSanitizer, SafeStyle } from '@angular/platform-browser'; -import { ActivatedRoute, ActivatedRouteSnapshot, ActivationStart, Data, Router, RoutesRecognized } from '@angular/router'; +import { ActivatedRoute, Data, Router, RoutesRecognized } from '@angular/router'; import { PersonModel } from 'src/app/modules/auth/models/person.model'; import { AuthService } from 'src/app/modules/auth/services/auth/auth.service'; import { ProfileTabEnum } from '../../enums/profile-tab.enum'; @@ -83,7 +83,7 @@ export class ProfileEditComponent implements AfterViewInit { }); } - loadPerson(personId: number) { + loadPerson(personId: number): void { this.person = undefined; this.loaded = false; this.personService.get(personId).subscribe(person => { @@ -92,7 +92,7 @@ export class ProfileEditComponent implements AfterViewInit { }); } - updateScroller() { + updateScroller(): void { this.scrollHeader.nativeElement.style.height = '0px'; this.headerHeight = this.scrollHeader.nativeElement.scrollHeight; this.maxHeaderMove = this.scrollHeader.nativeElement.firstChild.scrollHeight; @@ -106,7 +106,7 @@ export class ProfileEditComponent implements AfterViewInit { }, 50); } - activated(component) { + activated(component): void { if (component.footerElement) { this.footerElement = component.footerElement; } @@ -118,14 +118,14 @@ export class ProfileEditComponent implements AfterViewInit { }, 50); } - deactivated(component) { + deactivated(component): void { this.footerElement = undefined; setTimeout(() => { this.updateScroller(); }, 50); } - onscrol(e) { + onscrol(e): void { this.headerMove = Math.min(e.target.scrollTop, this.maxHeaderMove); }