From 008c7868a6e1ebac894ffd95a55d4da04f0ae8a7 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 3 Apr 2024 00:08:02 -0700 Subject: [PATCH] Fix tag filter type --- .../app-frame/global-search/global-search.component.spec.ts | 4 ++-- .../app-frame/global-search/global-search.component.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src-ui/src/app/components/app-frame/global-search/global-search.component.spec.ts b/src-ui/src/app/components/app-frame/global-search/global-search.component.spec.ts index f126907d9..d269dcc9d 100644 --- a/src-ui/src/app/components/app-frame/global-search/global-search.component.spec.ts +++ b/src-ui/src/app/components/app-frame/global-search/global-search.component.spec.ts @@ -20,10 +20,10 @@ import { DocumentListViewService } from 'src/app/services/document-list-view.ser import { HttpClientTestingModule } from '@angular/common/http/testing' import { FormsModule, ReactiveFormsModule } from '@angular/forms' import { - FILTER_HAS_ANY_TAG, FILTER_HAS_CORRESPONDENT_ANY, FILTER_HAS_DOCUMENT_TYPE_ANY, FILTER_HAS_STORAGE_PATH_ANY, + FILTER_HAS_TAGS_ANY, } from 'src/app/data/filter-rule-type' import { NgxBootstrapIconsModule, allIcons } from 'ngx-bootstrap-icons' import { DocumentService } from 'src/app/services/rest/document.service' @@ -250,7 +250,7 @@ describe('GlobalSearchComponent', () => { component.primaryAction(DataType.Tag, object) expect(qfSpy).toHaveBeenCalledWith([ - { rule_type: FILTER_HAS_ANY_TAG, value: object.id.toString() }, + { rule_type: FILTER_HAS_TAGS_ANY, value: object.id.toString() }, ]) component.primaryAction(DataType.User, object) diff --git a/src-ui/src/app/components/app-frame/global-search/global-search.component.ts b/src-ui/src/app/components/app-frame/global-search/global-search.component.ts index 60d72eb97..28e1e800a 100644 --- a/src-ui/src/app/components/app-frame/global-search/global-search.component.ts +++ b/src-ui/src/app/components/app-frame/global-search/global-search.component.ts @@ -13,7 +13,7 @@ import { FILTER_HAS_CORRESPONDENT_ANY, FILTER_HAS_DOCUMENT_TYPE_ANY, FILTER_HAS_STORAGE_PATH_ANY, - FILTER_HAS_ANY_TAG, + FILTER_HAS_TAGS_ANY, } from 'src/app/data/filter-rule-type' import { DataType } from 'src/app/data/datatype' import { ObjectWithId } from 'src/app/data/object-with-id' @@ -145,7 +145,7 @@ export class GlobalSearchComponent { filterRuleType = FILTER_HAS_STORAGE_PATH_ANY break case DataType.Tag: - filterRuleType = FILTER_HAS_ANY_TAG + filterRuleType = FILTER_HAS_TAGS_ANY break case DataType.User: editDialogComponent = UserEditDialogComponent