tanshu
1647d356c9
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
17 lines
396 B
TypeScript
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() {}
|
|
}
|