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