mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-31 02:08:19 +00:00
# Which Problems Are Solved # How the Problems Are Solved # Additional Changes # Additional Context - Closes #10690
30 lines
868 B
TypeScript
30 lines
868 B
TypeScript
import { Component, Inject } from '@angular/core';
|
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
import { mapTo } from 'rxjs';
|
|
import { Event } from 'src/app/proto/generated/zitadel/event_pb';
|
|
|
|
@Component({
|
|
selector: 'cnsl-display-json-dialog',
|
|
templateUrl: './display-json-dialog.component.html',
|
|
styleUrls: ['./display-json-dialog.component.scss'],
|
|
standalone: false,
|
|
})
|
|
export class DisplayJsonDialogComponent {
|
|
public event?: Event;
|
|
public payload: any = '';
|
|
public opened$ = this.dialogRef.afterOpened().pipe(mapTo(true));
|
|
|
|
constructor(
|
|
public dialogRef: MatDialogRef<DisplayJsonDialogComponent>,
|
|
@Inject(MAT_DIALOG_DATA) public data: any,
|
|
) {
|
|
this.event = data.event;
|
|
if ((data.event as Event) && data.event.payload) {
|
|
}
|
|
}
|
|
|
|
public closeDialog(): void {
|
|
this.dialogRef.close(false);
|
|
}
|
|
}
|