brewman/overlord/src/app/product/product-detail/product-detail-datasource.ts
tanshu 1647d356c9 Feature: Added product Stock Keeping Units to prevent duplicate products. A lot of refactoring because of this.
Removed: Reset Stock as it was never used and don't think it is even needed with this new batch system.
Fix: Incentive update was not working
2021-09-27 14:22:31 +05:30

17 lines
396 B
TypeScript

import { DataSource } from '@angular/cdk/collections';
import { Observable } from 'rxjs';
import { StockKeepingUnit } from '../../core/product';
export class ProductDetailDatasource extends DataSource<StockKeepingUnit> {
constructor(private data: Observable<StockKeepingUnit[]>) {
super();
}
connect(): Observable<StockKeepingUnit[]> {
return this.data;
}
disconnect() {}
}