diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts
index 33d2221..e3e2fee 100644
--- a/frontend/src/app/app.module.ts
+++ b/frontend/src/app/app.module.ts
@@ -28,30 +28,33 @@ import {MatSnackBarModule} from '@angular/material/snack-bar';
import {MatCheckboxModule} from '@angular/material/checkbox';
import { EditierenComponent } from './component/einstellungen/editieren/editieren.component';
import {MaterialFileInputModule} from 'ngx-material-file-input';
+import { DialogComponent } from './component/dialog/dialog.component';
+import {MatDialogModule} from '@angular/material/dialog';
@NgModule({
declarations: [LandingComponent, LoginComponent, NavigationComponent,
- TweetsComponent, EinstellungenComponent, EditierenComponent],
- imports: [
- ReactiveFormsModule,
- BrowserModule,
- BrowserAnimationsModule,
- AppRoutingModule,
- LoggerModule.forRoot({level: environment.log_level, serverLogLevel: NgxLoggerLevel.ERROR}),
- HttpClientModule,
- MatFormFieldModule,
- FormsModule,
- MatButtonModule,
- MatInputModule,
- MatSlideToggleModule,
- MatSliderModule,
- MatToolbarModule,
- MatIconModule,
- MatMenuModule,
- MatSnackBarModule,
- MatCheckboxModule,
- MaterialFileInputModule
- ],
+ TweetsComponent, EinstellungenComponent, EditierenComponent, DialogComponent],
+ imports: [
+ ReactiveFormsModule,
+ BrowserModule,
+ BrowserAnimationsModule,
+ AppRoutingModule,
+ LoggerModule.forRoot({level: environment.log_level, serverLogLevel: NgxLoggerLevel.ERROR}),
+ HttpClientModule,
+ MatFormFieldModule,
+ FormsModule,
+ MatButtonModule,
+ MatInputModule,
+ MatSlideToggleModule,
+ MatSliderModule,
+ MatToolbarModule,
+ MatIconModule,
+ MatMenuModule,
+ MatSnackBarModule,
+ MatCheckboxModule,
+ MaterialFileInputModule,
+ MatDialogModule
+ ],
// enables injecting
providers: [
AuthService,
diff --git a/frontend/src/app/component/dialog/dialog.component.css b/frontend/src/app/component/dialog/dialog.component.css
new file mode 100644
index 0000000..e69de29
diff --git a/frontend/src/app/component/dialog/dialog.component.html b/frontend/src/app/component/dialog/dialog.component.html
new file mode 100644
index 0000000..713c72a
--- /dev/null
+++ b/frontend/src/app/component/dialog/dialog.component.html
@@ -0,0 +1,8 @@
+
{{data.title}}
+
+ {{data.body}}
+
+
+
+
+
diff --git a/frontend/src/app/component/dialog/dialog.component.spec.ts b/frontend/src/app/component/dialog/dialog.component.spec.ts
new file mode 100644
index 0000000..a6bce8d
--- /dev/null
+++ b/frontend/src/app/component/dialog/dialog.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { DialogComponent } from './dialog.component';
+
+describe('DialogComponent', () => {
+ let component: DialogComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ DialogComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(DialogComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/frontend/src/app/component/dialog/dialog.component.ts b/frontend/src/app/component/dialog/dialog.component.ts
new file mode 100644
index 0000000..63eafe7
--- /dev/null
+++ b/frontend/src/app/component/dialog/dialog.component.ts
@@ -0,0 +1,24 @@
+import {Component, Inject, OnInit} from '@angular/core';
+import {MAT_DIALOG_DATA} from '@angular/material/dialog';
+
+export interface DialogData {
+ title: string;
+ body: string;
+ abort: string;
+ confirm: string;
+ hideAbort: boolean;
+}
+
+@Component({
+ selector: 'app-dialog',
+ templateUrl: './dialog.component.html',
+ styleUrls: ['./dialog.component.css']
+})
+export class DialogComponent implements OnInit {
+
+ constructor(@Inject(MAT_DIALOG_DATA) public data: DialogData) { }
+
+ ngOnInit(): void {
+ }
+
+}
diff --git a/frontend/src/app/component/einstellungen/editieren/editieren.component.html b/frontend/src/app/component/einstellungen/editieren/editieren.component.html
index 031abca..50d1aa4 100644
--- a/frontend/src/app/component/einstellungen/editieren/editieren.component.html
+++ b/frontend/src/app/component/einstellungen/editieren/editieren.component.html
@@ -33,7 +33,7 @@
-