mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-21 23:14:26 +00:00
# Which Problems Are Solved This pr updates major and minor dependencies and is the first step on getting our dependabot alerts cut down. # How the Problems Are Solved Depedency updates across the board eg: - Upgrade Angular to v21 - Upgrade next.js to v16.2 - Upgrade tailwind to v4 in the login - Upgrade vitest to v4 in the login This is an uncompleted list refer to the changed files for a full overview of all the updates. # Additional Changes Migrated all control flow in the console to the modern control flow syntax. Fixed the dependsOn setting for the @zitadel/login:test-unit nx target. # Additional Context - Closes https://github.com/zitadel/zitadel/issues/11274 --------- Co-authored-by: Max Peintner <[email protected]>
29 lines
957 B
TypeScript
29 lines
957 B
TypeScript
import { Component, inject } from '@angular/core';
|
|
import { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
|
|
import { InfoSectionType } from '../info-section/info-section.component';
|
|
import { TranslateModule } from '@ngx-translate/core';
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
|
|
export type InfoDialogData = {
|
|
confirmKey: string;
|
|
cancelKey: string;
|
|
titleKey: string;
|
|
descriptionKey: string;
|
|
};
|
|
|
|
export type InfoDialogResult = boolean;
|
|
|
|
@Component({
|
|
selector: 'cnsl-info-dialog',
|
|
templateUrl: './info-dialog.component.html',
|
|
styleUrls: ['./info-dialog.component.scss'],
|
|
imports: [TranslateModule, MatDialogModule, MatButtonModule],
|
|
})
|
|
export class InfoDialogComponent {
|
|
protected readonly InfoSectionType = InfoSectionType;
|
|
|
|
protected readonly dialogRef = inject<MatDialogRef<InfoDialogComponent>>(MatDialogRef);
|
|
protected readonly data = inject<InfoDialogData>(MAT_DIALOG_DATA);
|
|
}
|