-
-
Notifications
You must be signed in to change notification settings - Fork 40
Feat: prevent closing with option for confirmation dialog #131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8473151
090681b
ba6c43d
97bf70e
93b773f
9302d65
03ecb17
792b9e9
ca00ebb
0eefa11
a125a94
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| # Add files here to ignore them from prettier formatting | ||
| /dist | ||
| /coverage | ||
| /.nx/cache | ||
| /.nx/cache |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,30 @@ | ||||||
| import { Component, inject } from '@angular/core'; | ||||||
| import { CommonModule } from '@angular/common'; | ||||||
|
|
||||||
| import { DialogRef } from '@ngneat/dialog'; | ||||||
|
|
||||||
| @Component({ | ||||||
| selector: 'app-confirmation-dialog', | ||||||
| standalone: true, | ||||||
| imports: [CommonModule], | ||||||
| template: ` | ||||||
| <div style="padding: 10px"> | ||||||
| <p>Are you sure you want to close this dialog ?</p> | ||||||
|
||||||
| <p>Are you sure you want to close this dialog ?</p> | |
| <p>Are you sure you want to close this dialog?</p> |
Copilot
AI
Feb 4, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ConfirmationDialogComponent declares a message field but never uses it, and the dialog data passed in showConfirmationDialog() is also unused. Either remove the unused field/data, or render the message (e.g., read from dialogRef.data) so the component reflects the provided config.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,6 @@ | |
| <link rel="icon" type="image/svg+xml" href="favicon.svg" /> | ||
| </head> | ||
| <body> | ||
| <app-root /> | ||
| <app-root></app-root> | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. redundant ? check this |
||
| </body> | ||
| </html> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return result