From 47922bfce7a9e4e71971d23958f6c10c7b2ccc3d Mon Sep 17 00:00:00 2001 From: Mahmut Gundogdu Date: Thu, 24 Nov 2022 16:07:21 +0300 Subject: [PATCH] Reformat with prettier --- .../toast-container/toast-container.component.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/npm/ng-packs/packages/theme-shared/src/lib/components/toast-container/toast-container.component.ts b/npm/ng-packs/packages/theme-shared/src/lib/components/toast-container/toast-container.component.ts index 2ce2367a17..3551ff1535 100644 --- a/npm/ng-packs/packages/theme-shared/src/lib/components/toast-container/toast-container.component.ts +++ b/npm/ng-packs/packages/theme-shared/src/lib/components/toast-container/toast-container.component.ts @@ -1,7 +1,7 @@ -import {Component, HostListener, Input, OnInit} from '@angular/core'; -import {ReplaySubject} from 'rxjs'; -import {toastInOut} from '../../animations/toast.animations'; -import {Toaster} from '../../models/toaster'; +import { Component, HostListener, Input, OnInit } from '@angular/core'; +import { ReplaySubject } from 'rxjs'; +import { toastInOut } from '../../animations/toast.animations'; +import { Toaster } from '../../models/toaster'; @Component({ selector: 'abp-toast-container', @@ -30,7 +30,6 @@ export class ToastContainerComponent implements OnInit { @Input() left?: string; - @Input() toastKey?: string; @@ -39,8 +38,8 @@ export class ToastContainerComponent implements OnInit { this.toasts$.subscribe(toasts => { this.toasts = this.toastKey ? toasts.filter(t => { - return t.options && t.options.containerKey !== this.toastKey; - }) + return t.options && t.options.containerKey !== this.toastKey; + }) : toasts; }); } @@ -51,7 +50,6 @@ export class ToastContainerComponent implements OnInit { } setDefaultRight() { - const screenWidth = window.innerWidth; if (screenWidth < 768 && this.right == this.defaultRight) { this.right = this.defaultMobileRight;