Moved to Angular 20
Moved to Tailwind 4 Moved to Python 3.13 Enabled arm64/v8 Builds
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { CdkScrollableModule } from '@angular/cdk/scrolling';
|
||||
import { Component, ElementRef, Inject, ViewChild } from '@angular/core';
|
||||
import { Component, ElementRef, ViewChild, inject } from '@angular/core';
|
||||
import { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MAT_DIALOG_DATA, MatDialogRef, MatDialogModule } from '@angular/material/dialog';
|
||||
@@ -24,6 +24,12 @@ import { ReasonDatasource } from './reason-datasource';
|
||||
],
|
||||
})
|
||||
export class ReasonComponent {
|
||||
dialogRef = inject<MatDialogRef<ReasonComponent>>(MatDialogRef);
|
||||
private data = inject<{
|
||||
title: string;
|
||||
reasons: string[];
|
||||
}>(MAT_DIALOG_DATA);
|
||||
|
||||
@ViewChild('son', { static: true }) son?: ElementRef;
|
||||
form: FormGroup<{
|
||||
son: FormControl<string>;
|
||||
@@ -35,10 +41,9 @@ export class ReasonComponent {
|
||||
reasons: string[];
|
||||
displayedColumns = ['reason'];
|
||||
|
||||
constructor(
|
||||
public dialogRef: MatDialogRef<ReasonComponent>,
|
||||
@Inject(MAT_DIALOG_DATA) private data: { title: string; reasons: string[] },
|
||||
) {
|
||||
constructor() {
|
||||
const data = this.data;
|
||||
|
||||
this.reasons = data.reasons ?? [];
|
||||
this.title = data.title;
|
||||
this.form = new FormGroup({
|
||||
|
||||
Reference in New Issue
Block a user