From cd8c6ece0ff3e1b23a62cd16f40af8b497f6f0a6 Mon Sep 17 00:00:00 2001 From: Sercan Yemen <117369+srcn@users.noreply.github.com> Date: Wed, 25 May 2022 11:43:23 +0300 Subject: [PATCH] (@fuse/service/confirmation) Cleaned-up the dialog component --- .../confirmation/dialog/dialog.component.ts | 28 +++---------------- 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/src/@fuse/services/confirmation/dialog/dialog.component.ts b/src/@fuse/services/confirmation/dialog/dialog.component.ts index 4dd92d3f..9c45252b 100644 --- a/src/@fuse/services/confirmation/dialog/dialog.component.ts +++ b/src/@fuse/services/confirmation/dialog/dialog.component.ts @@ -1,12 +1,11 @@ -import { Component, Inject, OnInit, ViewEncapsulation } from '@angular/core'; -import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; +import { Component, Inject, ViewEncapsulation } from '@angular/core'; +import { MAT_DIALOG_DATA } from '@angular/material/dialog'; import { FuseConfirmationConfig } from '@fuse/services/confirmation/confirmation.types'; @Component({ selector : 'fuse-confirmation-dialog', templateUrl : './dialog.component.html', styles : [ - /* language=SCSS */ ` .fuse-confirmation-dialog-panel { @screen md { @@ -21,32 +20,13 @@ import { FuseConfirmationConfig } from '@fuse/services/confirmation/confirmation ], encapsulation: ViewEncapsulation.None }) -export class FuseConfirmationDialogComponent implements OnInit +export class FuseConfirmationDialogComponent { /** * Constructor */ - constructor( - @Inject(MAT_DIALOG_DATA) public data: FuseConfirmationConfig, - public matDialogRef: MatDialogRef - ) + constructor(@Inject(MAT_DIALOG_DATA) public data: FuseConfirmationConfig) { } - // ----------------------------------------------------------------------------------------------------- - // @ Lifecycle hooks - // ----------------------------------------------------------------------------------------------------- - - /** - * On init - */ - ngOnInit(): void - { - - } - - // ----------------------------------------------------------------------------------------------------- - // @ Public methods - // ----------------------------------------------------------------------------------------------------- - }