From 97159d011f089c22b88de158836ee244835eca66 Mon Sep 17 00:00:00 2001 From: sofiia koval Date: Tue, 12 Nov 2024 17:46:24 +0200 Subject: [PATCH] fix: delete ubused vars --- .../edit-photo-pop-up/edit-photo-pop-up.component.ts | 1 - src/app/shared/search-popup/search-popup.component.ts | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/app/main/component/shared/components/edit-photo-pop-up/edit-photo-pop-up.component.ts b/src/app/main/component/shared/components/edit-photo-pop-up/edit-photo-pop-up.component.ts index 7ba38fb3d7..5b52f0a055 100644 --- a/src/app/main/component/shared/components/edit-photo-pop-up/edit-photo-pop-up.component.ts +++ b/src/app/main/component/shared/components/edit-photo-pop-up/edit-photo-pop-up.component.ts @@ -21,7 +21,6 @@ export class EditPhotoPopUpComponent implements OnInit { loadingAnim: boolean; isDragAndDropMenu = false; croppedImage: string | File; - shouldCancel = false; @ViewChild(DragAndDropComponent) dragAndDropComponent: DragAndDropComponent; diff --git a/src/app/shared/search-popup/search-popup.component.ts b/src/app/shared/search-popup/search-popup.component.ts index d27a99da07..0b92e90cd5 100644 --- a/src/app/shared/search-popup/search-popup.component.ts +++ b/src/app/shared/search-popup/search-popup.component.ts @@ -4,7 +4,7 @@ import { LiveAnnouncer } from '@angular/cdk/a11y'; import { searchIcons } from '../../main/image-pathes/search-icons'; import { negate, isNil } from 'lodash'; import { Component, OnDestroy, OnInit } from '@angular/core'; -import { Subscription, forkJoin } from 'rxjs'; +import { Observable, Subscription, forkJoin } from 'rxjs'; import { FormControl } from '@angular/forms'; import { debounceTime, distinctUntilChanged, tap, switchMap, filter } from 'rxjs/operators'; import { SearchService } from '@global-service/search/search.service'; @@ -31,16 +31,13 @@ export class SearchPopupComponent implements OnInit, OnDestroy { newsElements: NewsSearchModel[] = []; eventsElements: EventsSearchModel[] = []; placesElements: PlacesSearchModel[] = []; - isSearchClicked = false; searchModalSubscription: Subscription; searchInput = new FormControl(''); isLoading = false; - isNewsSearchFound: boolean; - searchValueChanges; + searchValueChanges: Observable; private currentLanguage: string; searchIcons = searchIcons; - searctabindex: SearchService; constructor( public searchService: SearchService,