-
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.
- Loading branch information
1 parent
8f4d8b9
commit fb36e2c
Showing
10 changed files
with
173 additions
and
31 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
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
10 changes: 10 additions & 0 deletions
10
src/app/components/confirmation-dialog/confirmation-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,10 @@ | ||
<h2 mat-dialog-title>{{ props.title }}</h2> | ||
<mat-dialog-content *ngIf="props.detail">{{ props.detail }}</mat-dialog-content> | ||
<mat-dialog-actions align="end"> | ||
<button mat-button [class]="props.buttonClass" [mat-dialog-close]="false"> | ||
{{ props.buttonNames ? props.buttonNames[0] : "CANCEL" }} | ||
</button> | ||
<button mat-flat-button [class]="props.buttonClass" [mat-dialog-close]="true"> | ||
{{ props.buttonNames ? props.buttonNames[1] : "OK" }} | ||
</button> | ||
</mat-dialog-actions> |
3 changes: 3 additions & 0 deletions
3
src/app/components/confirmation-dialog/confirmation-dialog.component.scss
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,3 @@ | ||
:host > * { | ||
max-width: 400px; | ||
} |
32 changes: 32 additions & 0 deletions
32
src/app/components/confirmation-dialog/confirmation-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,32 @@ | ||
import { Component, Inject } from '@angular/core'; | ||
import { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from "@angular/material/dialog"; | ||
import { MatButtonModule } from "@angular/material/button"; | ||
import { NgIf } from "@angular/common"; | ||
|
||
@Component({ | ||
selector: 'app-confirmation-dialog', | ||
standalone: true, | ||
imports: [ | ||
MatButtonModule, | ||
MatDialogModule, | ||
NgIf, | ||
], | ||
templateUrl: './confirmation-dialog.component.html', | ||
styleUrl: './confirmation-dialog.component.scss' | ||
}) | ||
export class ConfirmationDialogComponent { | ||
|
||
constructor( | ||
@Inject(MAT_DIALOG_DATA) public props: ConfirmationDialogProps, | ||
) { | ||
} | ||
|
||
} | ||
|
||
export interface ConfirmationDialogProps { | ||
title: string; | ||
detail?: string; | ||
|
||
buttonClass?: string; | ||
buttonNames?: [string, string]; | ||
} |
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
5 changes: 5 additions & 0 deletions
5
src/app/lightbox/components/lightbox-download-menu/lightbox-download-menu.component.scss
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
button[mat-icon-button] { | ||
color: white; | ||
} | ||
|
||
button span.hint { | ||
display: block; | ||
color: #777; | ||
} |