|
|
@@ -1,8 +1,7 @@
|
|
|
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
|
|
import { NgSelectComponent, SELECTION_MODEL_FACTORY } from '@ng-select/ng-select';
|
|
|
-import { notNullOrUndefined } from '@vendure/common/lib/shared-utils';
|
|
|
-
|
|
|
import { SearchProducts } from '@vendure/admin-ui/core';
|
|
|
+import { notNullOrUndefined } from '@vendure/common/lib/shared-utils';
|
|
|
|
|
|
import { ProductSearchSelectionModelFactory } from './product-search-selection-model';
|
|
|
|
|
|
@@ -98,6 +97,10 @@ export class ProductSearchInputComponent {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ addTagFn(item: any) {
|
|
|
+ return { label: item };
|
|
|
+ }
|
|
|
+
|
|
|
isSearchHeaderSelected(): boolean {
|
|
|
return this.selectComponent.itemsList.markedIndex === -1;
|
|
|
}
|