mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
Revert "[ACS-9166] Migrate Saved Searches to preferences API from config file…" (#4347)
This reverts commit 0dfd2c17ab
.
This commit is contained in:
@@ -35,7 +35,7 @@ describe('SaveSearchSidenavComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
const mockService = {
|
||||
init: () => {},
|
||||
innit: () => {},
|
||||
getSavedSearches: () => of(),
|
||||
savedSearches$: new ReplaySubject(1)
|
||||
};
|
||||
|
@@ -25,15 +25,16 @@
|
||||
import { Component, DestroyRef, inject, OnInit, ViewEncapsulation } from '@angular/core';
|
||||
import { SavedSearch, SavedSearchesService } from '@alfresco/adf-content-services';
|
||||
import { CoreModule, TranslationService } from '@alfresco/adf-core';
|
||||
import { NavBarLinkRef } from '@alfresco/adf-extensions';
|
||||
import { DynamicExtensionComponent, NavBarLinkRef } from '@alfresco/adf-extensions';
|
||||
import { ExpandMenuComponent } from '../../../sidenav/components/expand-menu.component';
|
||||
import { SidenavHeaderComponent } from '../../../sidenav/components/sidenav-header.component';
|
||||
import { AppService } from '@alfresco/aca-shared';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
|
||||
@Component({
|
||||
selector: 'aca-save-search-sidenav',
|
||||
standalone: true,
|
||||
imports: [CoreModule, ExpandMenuComponent],
|
||||
imports: [CoreModule, DynamicExtensionComponent, ExpandMenuComponent, SidenavHeaderComponent],
|
||||
templateUrl: './save-search-sidenav.component.html',
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
@@ -47,7 +48,7 @@ export class SaveSearchSidenavComponent implements OnInit {
|
||||
private readonly destroyRef = inject(DestroyRef);
|
||||
|
||||
ngOnInit() {
|
||||
this.savedSearchesService.init();
|
||||
this.savedSearchesService.innit();
|
||||
this.savedSearchesService.savedSearches$
|
||||
.asObservable()
|
||||
.pipe(takeUntilDestroyed(this.destroyRef))
|
||||
|
Reference in New Issue
Block a user