|
|
|
@ -1,12 +1,7 @@ |
|
|
|
import { CreateTagDto, UpdateTagDto } from '@ghostfolio/common/dtos'; |
|
|
|
import { validateObjectForForm } from '@ghostfolio/common/utils'; |
|
|
|
|
|
|
|
import { |
|
|
|
ChangeDetectionStrategy, |
|
|
|
Component, |
|
|
|
Inject, |
|
|
|
OnDestroy |
|
|
|
} from '@angular/core'; |
|
|
|
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core'; |
|
|
|
import { |
|
|
|
FormBuilder, |
|
|
|
FormGroup, |
|
|
|
@ -21,7 +16,6 @@ import { |
|
|
|
} from '@angular/material/dialog'; |
|
|
|
import { MatFormFieldModule } from '@angular/material/form-field'; |
|
|
|
import { MatInputModule } from '@angular/material/input'; |
|
|
|
import { Subject } from 'rxjs'; |
|
|
|
|
|
|
|
import { CreateOrUpdateTagDialogParams } from './interfaces/interfaces'; |
|
|
|
|
|
|
|
@ -40,11 +34,9 @@ import { CreateOrUpdateTagDialogParams } from './interfaces/interfaces'; |
|
|
|
styleUrls: ['./create-or-update-tag-dialog.scss'], |
|
|
|
templateUrl: 'create-or-update-tag-dialog.html' |
|
|
|
}) |
|
|
|
export class GfCreateOrUpdateTagDialogComponent implements OnDestroy { |
|
|
|
export class GfCreateOrUpdateTagDialogComponent { |
|
|
|
public tagForm: FormGroup; |
|
|
|
|
|
|
|
private unsubscribeSubject = new Subject<void>(); |
|
|
|
|
|
|
|
public constructor( |
|
|
|
@Inject(MAT_DIALOG_DATA) public data: CreateOrUpdateTagDialogParams, |
|
|
|
public dialogRef: MatDialogRef<GfCreateOrUpdateTagDialogComponent>, |
|
|
|
@ -85,9 +77,4 @@ export class GfCreateOrUpdateTagDialogComponent implements OnDestroy { |
|
|
|
console.error(error); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public ngOnDestroy() { |
|
|
|
this.unsubscribeSubject.next(); |
|
|
|
this.unsubscribeSubject.complete(); |
|
|
|
} |
|
|
|
} |
|
|
|
|