-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add delete client command and respective handler * feat: first draft of user interface to delete clients * feat: add checkboxes for multiple client delete * fix: use custom application manager to enable client deletion * feat: parallel deletion of multiple clients added * fix: send expected error message for concurrency exception as per openiddict docs * fix: possible response types for deletion of clients * refactor: promote custom open iddict application store to separate file * refactor: change string interpolation in client service * feat: add confirmation dialog for client deletion * fix: remove unnecessary dependencies * test: add integration tests for client deletion and fix project namespaces * test: add "Integration" tag to integration tests for deletion of clients * chore: cleanup CustomOpenIddictEntityFrameworkCoreApplicationStore * test: add SetContent method to RequestConfiguration * test: cleanup --------- Co-authored-by: Timo Notheisen <[email protected]>
- Loading branch information
1 parent
bf18b33
commit 4c312ec
Showing
54 changed files
with
517 additions
and
110 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
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
9 changes: 9 additions & 0 deletions
9
...ClientApp/src/app/components/shared/confirmation-dialog/confirmation-dialog.component.css
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 @@ | ||
.confirmation-title { | ||
background-color: #673ab7; | ||
color: #ffffff; | ||
} | ||
|
||
.confirmation-message { | ||
color: #808080; | ||
font-weight: 300; | ||
} |
8 changes: 8 additions & 0 deletions
8
...lientApp/src/app/components/shared/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,8 @@ | ||
<h2 mat-dialog-title class="confirmation-title">{{ data.header }}</h2> | ||
<mat-dialog-content> | ||
<h2 class="confirmation-message">{{ data.message }}</h2> | ||
</mat-dialog-content> | ||
<mat-dialog-actions align="end"> | ||
<button mat-flat-button [mat-dialog-close]="false">Cancel</button> | ||
<button mat-flat-button color="primary" [mat-dialog-close]="true" cdkFocusInitial>Yes</button> | ||
</mat-dialog-actions> |
23 changes: 23 additions & 0 deletions
23
...ntApp/src/app/components/shared/confirmation-dialog/confirmation-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,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ConfirmationDialogComponent } from './confirmation-dialog.component'; | ||
|
||
describe('ConfirmationDialogComponent', () => { | ||
let component: ConfirmationDialogComponent; | ||
let fixture: ComponentFixture<ConfirmationDialogComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ ConfirmationDialogComponent ] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(ConfirmationDialogComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
17 changes: 17 additions & 0 deletions
17
.../ClientApp/src/app/components/shared/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,17 @@ | ||
import { Component, Inject } from '@angular/core'; | ||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; | ||
|
||
@Component({ | ||
selector: 'app-confirmation-dialog', | ||
templateUrl: './confirmation-dialog.component.html', | ||
styleUrls: ['./confirmation-dialog.component.css'] | ||
}) | ||
export class ConfirmationDialogComponent { | ||
constructor(public dialogRef: MatDialogRef<ConfirmationDialogComponent>, | ||
@Inject(MAT_DIALOG_DATA) public data: DialogData) { } | ||
} | ||
|
||
export interface DialogData { | ||
header: string; | ||
message: 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
Oops, something went wrong.