diff --git a/src/app/container/add-tag/add-tag.component.ts b/src/app/container/add-tag/add-tag.component.ts index f0c2cc1c92..8f229d2455 100644 --- a/src/app/container/add-tag/add-tag.component.ts +++ b/src/app/container/add-tag/add-tag.component.ts @@ -182,7 +182,7 @@ export class AddTagComponent extends Base implements OnInit, AfterViewChecked { if (this.currentForm === this.addTagForm) { return; } this.addTagForm = this.currentForm; if (this.addTagForm) { - this.addTagForm.valueChanges.pipe(debounceTime(formInputDebounceTime)) + this.addTagForm.valueChanges.pipe(debounceTime(formInputDebounceTime), takeUntil(this.ngUnsubscribe)) .subscribe(data => this.onValueChanged(data)); } } diff --git a/src/app/container/register-tool/register-tool.component.ts b/src/app/container/register-tool/register-tool.component.ts index 7ed41268e2..5ba75d6828 100644 --- a/src/app/container/register-tool/register-tool.component.ts +++ b/src/app/container/register-tool/register-tool.component.ts @@ -17,13 +17,13 @@ import { AfterViewChecked, Component, OnDestroy, OnInit, ViewChild } from '@angu import { NgForm } from '@angular/forms'; import { Observable, Subject } from 'rxjs'; import { debounceTime, takeUntil } from 'rxjs/operators'; - import { AlertQuery } from '../../shared/alert/state/alert.query'; import { AlertService } from '../../shared/alert/state/alert.service'; import { formInputDebounceTime } from '../../shared/constants'; import { formErrors, validationDescriptorPatterns, validationMessages } from '../../shared/validationMessages.model'; import { RegisterToolService } from './register-tool.service'; + @Component({ selector: 'app-register-tool', templateUrl: './register-tool.component.html', @@ -136,7 +136,7 @@ export class RegisterToolComponent implements OnInit, AfterViewChecked, OnDestro if (this.currentForm === this.registerToolForm) { return; } this.registerToolForm = this.currentForm; if (this.registerToolForm) { - this.registerToolForm.valueChanges.pipe(debounceTime(formInputDebounceTime)) + this.registerToolForm.valueChanges.pipe(debounceTime(formInputDebounceTime), takeUntil(this.ngUnsubscribe)) .subscribe(data => this.onValueChanged(data)); } } diff --git a/src/app/organizations/upsert-organization-member/upsert-organization-member.component.ts b/src/app/organizations/upsert-organization-member/upsert-organization-member.component.ts index 3ffa29fd58..8d15328e6b 100644 --- a/src/app/organizations/upsert-organization-member/upsert-organization-member.component.ts +++ b/src/app/organizations/upsert-organization-member/upsert-organization-member.component.ts @@ -2,10 +2,8 @@ import { Component, Inject, OnDestroy, OnInit } from '@angular/core'; import { AbstractControl, FormGroup } from '@angular/forms'; import { MAT_DIALOG_DATA } from '@angular/material'; import { AkitaNgFormsManager } from '@datorama/akita-ng-forms-manager'; - import { TagEditorMode } from '../../shared/enum/tagEditorMode.enum'; import { OrganizationUser } from '../../shared/swagger'; -import { UpsertOrganizationMemberQuery } from '../state/upsert-organization-member.query'; import { FormsState, UpsertOrganizationMemberService } from '../state/upsert-organization-member.service'; @Component({ @@ -17,9 +15,8 @@ export class UpsertOrganizationMemberComponent implements OnInit, OnDestroy { roleKeys: any; - constructor(private upsertOrganizationMemberQuery: UpsertOrganizationMemberQuery, - private upsertOrganizationMemberService: UpsertOrganizationMemberService, - private formsManager: AkitaNgFormsManager, @Inject(MAT_DIALOG_DATA) public data: any + constructor(private upsertOrganizationMemberService: UpsertOrganizationMemberService, + private formsManager: AkitaNgFormsManager, @Inject(MAT_DIALOG_DATA) public data: any ) { this.roleKeys = Object.keys(this.RoleEnum); } diff --git a/src/app/search/advancedsearch/advancedsearch.component.html b/src/app/search/advancedsearch/advancedsearch.component.html index 7b9d13f85b..2867f75b70 100644 --- a/src/app/search/advancedsearch/advancedsearch.component.html +++ b/src/app/search/advancedsearch/advancedsearch.component.html @@ -13,8 +13,7 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> - -