diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 52f322a8ae91561bd3d81732b3186c201dba1bca..b704cfdcbde3fb86c39c5640da173c698f1e05c0 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 045bdd3d15b2d007c63c3b52c8f57cf5ceedbc8e..0000000000000000000000000000000000000000 --- 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 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 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 dcb44e78bfb42fc82105489a6ff88778d8f7d8a0..0000000000000000000000000000000000000000 --- 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 1cdcd9887f7d41a57d609bdd1f262f81e546219d..0000000000000000000000000000000000000000 --- 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 e924a94adacbf170050219150ee22f694b878589..c2f0e8fe166251a6ef103330f9f6678fc9da1b06 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',