You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
946 B
37 lines
946 B
import { Component } from "@angular/core";
|
|
import { FormsModule } from "@angular/forms";
|
|
import { MatButtonModule } from "@angular/material/button";
|
|
import { MatDialogModule, MatDialogRef } from "@angular/material/dialog";
|
|
import { MatFormFieldModule } from "@angular/material/form-field";
|
|
import { MatInputModule } from "@angular/material/input";
|
|
|
|
export enum Resume {
|
|
Discard,
|
|
Next,
|
|
Instant,
|
|
NewRun,
|
|
}
|
|
|
|
@Component({
|
|
selector: 'resume-dialog',
|
|
templateUrl: 'resume-dialog.component.html',
|
|
standalone: true,
|
|
imports: [MatDialogModule, MatFormFieldModule, MatInputModule, FormsModule, MatButtonModule],
|
|
})
|
|
export class ResumeDialog {
|
|
|
|
instant() {
|
|
this.dialogRef.close(Resume.Instant);
|
|
}
|
|
next() {
|
|
this.dialogRef.close(Resume.Next);
|
|
}
|
|
discard() {
|
|
this.dialogRef.close(Resume.Discard);
|
|
}
|
|
newRun(){
|
|
this.dialogRef.close(Resume.NewRun);
|
|
}
|
|
|
|
constructor(public dialogRef: MatDialogRef<ResumeDialog>) {}
|
|
} |