Skip to content
Snippets Groups Projects
Commit 69215023 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Remove unused footer-login-component

parent 95694f33
Branches
Tags
No related merge requests found
......@@ -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,
......
<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
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();
});
});
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() {
}
}
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',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment