Files
zitadel/console/src/app/modules/info-dialog/info-dialog.component.ts
T
0945195f68 chore: deps update (#11968)
# 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]>
2026-04-02 15:53:08 +02:00

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);
}