From 6921502347b11ca17e63821f7a486501b74ec0e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Sun, 10 Feb 2019 18:27:33 +0100 Subject: [PATCH] Remove unused footer-login-component --- src/app/app.module.ts | 7 ++---- .../footer-login-dialog.component.html | 8 ------ .../footer-login-dialog.component.scss | 0 .../footer-login-dialog.component.spec.ts | 25 ------------------- .../footer-login-dialog.component.ts | 23 ----------------- .../shared/footer/footer.component.ts | 3 +-- 6 files changed, 3 insertions(+), 63 deletions(-) delete mode 100644 src/app/components/shared/_dialogs/footer-login-dialog/footer-login-dialog.component.html delete mode 100644 src/app/components/shared/_dialogs/footer-login-dialog/footer-login-dialog.component.scss delete mode 100644 src/app/components/shared/_dialogs/footer-login-dialog/footer-login-dialog.component.spec.ts delete mode 100644 src/app/components/shared/_dialogs/footer-login-dialog/footer-login-dialog.component.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 52f322a8a..b704cfdcb 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -19,7 +19,6 @@ import { ContentAnswerService } from './services/http/content-answer.service'; import { UserActivationComponent } from './components/home/_dialogs/user-activation/user-activation.component'; import { AuthenticationInterceptor } from './interceptors/authentication.interceptor'; import { GenericDataDialogComponent } from './components/shared/_dialogs/generic-data-dialog/generic-data-dialog.component'; -import { FooterLoginDialogComponent } from './components/shared/_dialogs/footer-login-dialog/footer-login-dialog.component'; import { EssentialsModule } from './components/essentials/essentials.module'; import { SharedModule } from './components/shared/shared.module'; import { BrowserModule } from '@angular/platform-browser'; @@ -36,15 +35,13 @@ export function dialogClose(dialogResult: any) { LoginComponent, PasswordResetComponent, RegisterComponent, - UserActivationComponent, - FooterLoginDialogComponent + UserActivationComponent ], entryComponents: [ RegisterComponent, PasswordResetComponent, UserActivationComponent, - GenericDataDialogComponent, - FooterLoginDialogComponent + GenericDataDialogComponent ], imports: [ AppRoutingModule, diff --git a/src/app/components/shared/_dialogs/footer-login-dialog/footer-login-dialog.component.html b/src/app/components/shared/_dialogs/footer-login-dialog/footer-login-dialog.component.html deleted file mode 100644 index 045bdd3d1..000000000 --- a/src/app/components/shared/_dialogs/footer-login-dialog/footer-login-dialog.component.html +++ /dev/null @@ -1,8 +0,0 @@ -<h3 mat-header>Login as Guest</h3> -<p mat-line>Do you really want to leave the current page and login as a guest?</p> -<p mat-line>You'll be logged out if you are currently logged in</p> - -<mat-action-row> - <button mat-button (click)="dialogRef.close('login')">Login</button> - <button mat-button (click)="onNoClick()">Cancel</button> -</mat-action-row> \ No newline at end of file diff --git a/src/app/components/shared/_dialogs/footer-login-dialog/footer-login-dialog.component.scss b/src/app/components/shared/_dialogs/footer-login-dialog/footer-login-dialog.component.scss deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/app/components/shared/_dialogs/footer-login-dialog/footer-login-dialog.component.spec.ts b/src/app/components/shared/_dialogs/footer-login-dialog/footer-login-dialog.component.spec.ts deleted file mode 100644 index dcb44e78b..000000000 --- a/src/app/components/shared/_dialogs/footer-login-dialog/footer-login-dialog.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { FooterLoginDialogComponent } from './footer-login-dialog.component'; - -describe('FooterLoginDialogComponent', () => { - let component: FooterLoginDialogComponent; - let fixture: ComponentFixture<FooterLoginDialogComponent>; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ FooterLoginDialogComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(FooterLoginDialogComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/components/shared/_dialogs/footer-login-dialog/footer-login-dialog.component.ts b/src/app/components/shared/_dialogs/footer-login-dialog/footer-login-dialog.component.ts deleted file mode 100644 index 1cdcd9887..000000000 --- a/src/app/components/shared/_dialogs/footer-login-dialog/footer-login-dialog.component.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Component, OnInit, Inject } from '@angular/core'; -import { FooterComponent } from '../../footer/footer.component'; -import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material'; - -@Component({ - selector: 'app-footer-login-dialog', - templateUrl: './footer-login-dialog.component.html', - styleUrls: ['./footer-login-dialog.component.scss'] -}) -export class FooterLoginDialogComponent implements OnInit { - - constructor( - public dialogRef: MatDialogRef<FooterComponent>, - @Inject(MAT_DIALOG_DATA) public data: any - ) { } - - onNoClick(): void { - this.dialogRef.close(); - } - - ngOnInit() { - } -} diff --git a/src/app/components/shared/footer/footer.component.ts b/src/app/components/shared/footer/footer.component.ts index e924a94ad..c2f0e8fe1 100644 --- a/src/app/components/shared/footer/footer.component.ts +++ b/src/app/components/shared/footer/footer.component.ts @@ -1,9 +1,8 @@ -import { Component, OnInit, Input } from '@angular/core'; +import { Component, OnInit } from '@angular/core'; import { AuthenticationService } from '../../../services/http/authentication.service'; import { NotificationService } from '../../../services/util/notification.service'; import { Router } from '@angular/router'; import { MatDialog } from '@angular/material'; -import { FooterLoginDialogComponent } from '../_dialogs/footer-login-dialog/footer-login-dialog.component'; @Component({ selector: 'app-footer', -- GitLab