[28126] Add search to dynamic bootstrapper

[ci skip]
https://community.openproject.com/wp/28126
pull/6480/merge
Oliver Günther 6 years ago
parent d32593f640
commit 2f9c7c1868
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 9
      frontend/src/app/components/expandable-search/expandable-search.component.ts

@ -30,9 +30,12 @@ import {Component, ElementRef, HostListener, OnDestroy, Renderer2, ViewChild} fr
import {ContainHelpers} from 'core-app/modules/common/focus/contain-helpers';
import {FocusHelperService} from 'core-app/modules/common/focus/focus-helper';
import {I18nService} from 'core-app/modules/common/i18n/i18n.service';
import {DynamicBootstrapper} from "core-app/globals/dynamic-bootstrapper";
export const expandableSearchSelector = 'expandable-search';
@Component({
selector: 'expandable-search',
selector: expandableSearchSelector,
templateUrl: './expandable-search.component.html'
})
@ -113,3 +116,7 @@ export class ExpandableSearchComponent implements OnDestroy {
this.input.nativeElement.value = val;
}
}
DynamicBootstrapper.register({
selector: expandableSearchSelector, cls: ExpandableSearchComponent
});

Loading…
Cancel
Save