Remove unused lifecycle methodes Fix #87

This commit is contained in:
kevinpauer
2022-04-28 19:44:17 +02:00
parent 80635e6626
commit 79dfd6e5a1
9 changed files with 3605 additions and 38 deletions

View File

@@ -13,7 +13,7 @@ import { TransactionData } from '../dashboard.component';
templateUrl: './user-dialog.component.html',
styleUrls: ['./user-dialog.component.scss'],
})
export class UserDialogComponent implements OnInit {
export class UserDialogComponent {
constructor(
private dataService: DataService,
public dialog: MatDialog,
@@ -21,8 +21,6 @@ export class UserDialogComponent implements OnInit {
@Inject(MAT_DIALOG_DATA) public data: TransactionData
) {}
ngOnInit(): void {}
onSubmit() {
//TODO check tat price is decimal
console.log(

View File

@@ -6,14 +6,12 @@ import { TokenStorageService } from 'src/app/Services/token.service';
templateUrl: './header.component.html',
styleUrls: ['./header.component.scss'],
})
export class HeaderComponent implements OnInit {
export class HeaderComponent {
/**
* @param {TokenStorageService} privatetokenStorage
*/
constructor(private tokenStorage: TokenStorageService) {}
ngOnInit(): void {}
//logout() clears session storage; All user data is eradicated from it and page is reloaded
logout() {
this.tokenStorage.signOut();

View File

@@ -5,11 +5,9 @@ import { Component, OnInit } from '@angular/core';
templateUrl: './confirmation-dialog.component.html',
styleUrls: ['./confirmation-dialog.component.scss'],
})
export class ConfirmationDialogComponent implements OnInit {
export class ConfirmationDialogComponent {
constructor() {}
ngOnInit(): void {}
confirm() {}
returnBack() {}

View File

@@ -5,10 +5,8 @@ import { Component, OnInit } from '@angular/core';
templateUrl: './help-dialog.component.html',
styleUrls: ['./help-dialog.component.scss'],
})
export class HelpDialogComponent implements OnInit {
export class HelpDialogComponent {
constructor() {}
ngOnInit(): void {}
close() {}
}

View File

@@ -7,7 +7,7 @@ import { AuthService } from '../../Services/auth.service';
templateUrl: './register.component.html',
styleUrls: ['./register.component.scss'],
})
export class RegisterComponent implements OnInit {
export class RegisterComponent {
form: any = {
email: null,
password: null,
@@ -22,7 +22,6 @@ export class RegisterComponent implements OnInit {
* @param {Router} privaterouter
*/
constructor(private authService: AuthService, private router: Router) {}
ngOnInit(): void {}
onSubmit(): void {
const { email, username, password } = this.form;
this.authService.register(email, username, password).subscribe(