Commit 4e5b2dbc authored by Dennis Willers's avatar Dennis Willers 🏀

Module erweitert um Dialog Funktionalitäten

parent 63fcd89b
Pipeline #403 passed with stage
in 5 minutes and 9 seconds
This diff is collapsed.
......@@ -14,7 +14,7 @@ import {MatButtonModule} from '@angular/material/button';
import {MatFormFieldModule} from '@angular/material/form-field';
import {MatInputModule} from '@angular/material/input';
import {MatCardModule} from '@angular/material/card';
import { OverviewComponent } from './overview/overview.component';
import {OverviewComponent, TestDialogComponent} from './overview/overview.component';
import { ErrorComponent } from './error/error.component';
import {MatProgressSpinnerModule} from '@angular/material/progress-spinner';
import { FormsModule } from '@angular/forms';
......@@ -31,7 +31,7 @@ import { RoundHistoryComponent } from './round-history/round-history.component';
import {MatTableModule} from '@angular/material/table';
import {MatTreeModule} from '@angular/material/tree';
import {ViewModus} from './dao/viewModus';
import {MatDialogModule} from '@angular/material/dialog';
import {MAT_DIALOG_DEFAULT_OPTIONS, MatDialogModule} from '@angular/material/dialog';
@NgModule({
declarations: [
......@@ -46,6 +46,7 @@ import {MatDialogModule} from '@angular/material/dialog';
ImpressumComponent,
RulesComponent,
RoundHistoryComponent,
TestDialogComponent
],
imports: [
HttpClientModule,
......@@ -68,6 +69,7 @@ import {MatDialogModule} from '@angular/material/dialog';
MatDialogModule
],
providers: [
{provide: MAT_DIALOG_DEFAULT_OPTIONS, useValue: {hasBackdrop: false}},
IsAllowedToPlay,
SocketDataService,
ViewModus
......
......@@ -281,7 +281,7 @@ export class OverviewComponent implements OnInit, OnDestroy {
}
}
@Component({
selector: 'testdialog',
selector: 'app-testdialog',
templateUrl: './testdialog.html',
})
export class TestDialogComponent {}
\ No newline at end of file
export class TestDialogComponent {}
<h1 mat-dialog-title>Ihr habt alle Begriffe durchgespielt!</h1>
<div mat-dialog-content>Eröffnet einen neuen Raum oder setzt den Fortschritt sofort hier zurück:</div>
<div mat-dialog-actions>
<button mat-button mat-dialog-close>Zurücksetzen</button>
<button mat-button >Schließen</button>
<button mat-raised-button>Zurücksetzen</button>
<button mat-raised-button color="primary" mat-dialog-close>Schließen</button>
</div>
Markdown is supported
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