Skip to content

Commit

Permalink
TFS 437490: [BUG] SB Angular 15 Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
LesWardwell committed Oct 24, 2023
1 parent e8f8733 commit dce7074
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,8 @@

<div class='buttons'>
<div class='left'>
<button mat-button class='link-button' (click)="createCSR('Client')" color="primary">Create a
Certificate
Signing Request (CSR)</button>
<button mat-button class='link-button' (click)="createCSR($event,'Client')" color="primary">
Create a Certificate Signing Request (CSR)</button>
</div>
<div class='right'>
<app-progress-spinner color="accent" diameter="32" message='Uploading Certificate'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,11 @@ export class MainComponent implements OnInit, AfterViewInit {
);
}

createCSR(certificateType: string): void {
createCSR(event: any, certificateType: string): void {
if (event && event.currentTarget) {
event.currentTarget.blur();
}

const dialogRef = this.dialog.open(CreateCsrComponent, {
data: { certificateType }
});
Expand Down Expand Up @@ -480,7 +484,7 @@ export class MainComponent implements OnInit, AfterViewInit {
if (dlgResult?.result === UploadCertificateResult.ViewCertificate) {
this.viewCertificate(null, certificateType);
} else if (dlgResult?.result === UploadCertificateResult.CreateCSR) {
this.createCSR(certificateType);
this.createCSR(e, certificateType);
}
return of(); // Nothing more to do
}),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.save-csr-container {
min-height: 500px;
padding: 20px;
}


Expand Down

0 comments on commit dce7074

Please sign in to comment.