-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added alert dialog logic and disabled header text translation
- Loading branch information
Showing
8 changed files
with
67 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
ClientApp/src/app/home/alert-dialog/alert-dialog.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div style="padding: 20px;"> | ||
<p style="font-weight: bold;">One-Time Disclaimer!</p> | ||
<p>This site is un-official & not affiliated with GameStop Corp. | ||
<br />(since I see it asked alot)</p> | ||
</div> | ||
|
||
<div mat-dialog-actions> | ||
<button mat-button [mat-dialog-close]="true" style="background-color: rgba(255,255,255,.4);"><span style="color: white; font-weight:500; opacity:1;">Continue to Build Controller!</span></button> | ||
</div> |
Empty file.
21 changes: 21 additions & 0 deletions
21
ClientApp/src/app/home/alert-dialog/alert-dialog.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { AlertDialogComponent } from './alert-dialog.component'; | ||
|
||
describe('AlertDialogComponent', () => { | ||
let component: AlertDialogComponent; | ||
let fixture: ComponentFixture<AlertDialogComponent>; | ||
|
||
beforeEach(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [AlertDialogComponent] | ||
}); | ||
fixture = TestBed.createComponent(AlertDialogComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
15 changes: 15 additions & 0 deletions
15
ClientApp/src/app/home/alert-dialog/alert-dialog.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, Inject } from '@angular/core'; | ||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; | ||
|
||
@Component({ | ||
selector: 'app-alert-dialog', | ||
templateUrl: './alert-dialog.component.html', | ||
styleUrls: ['./alert-dialog.component.scss'] | ||
}) | ||
export class AlertDialogComponent { | ||
|
||
constructor( | ||
public dialogRef: MatDialogRef<AlertDialogComponent>, | ||
@Inject(MAT_DIALOG_DATA) public data: any) { } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters