Bills initially working just as proof of concept
ng linted modifier categories list is better at displaying data sanely now
This commit is contained in:
@ -6,7 +6,7 @@ import { SaleCategoryResolver } from './sale-category-resolver.service';
|
||||
import { SaleCategoryListComponent } from './sale-category-list/sale-category-list.component';
|
||||
import { SaleCategoryDetailComponent } from './sale-category-detail/sale-category-detail.component';
|
||||
import { AuthGuard } from '../auth/auth-guard.service';
|
||||
import { TaxListResolver } from "../taxes/tax-list-resolver.service";
|
||||
import { TaxListResolver } from '../taxes/tax-list-resolver.service';
|
||||
|
||||
const saleCategoriesRoutes: Routes = [
|
||||
{
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from '@angular/core';
|
||||
import { FormBuilder, FormGroup } from '@angular/forms';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { MatDialog } from "@angular/material";
|
||||
import { MatDialog } from '@angular/material';
|
||||
|
||||
import { SaleCategoryService } from '../sale-category.service';
|
||||
import { SaleCategory } from '../../core/sale-category';
|
||||
import { ToasterService } from '../../core/toaster.service';
|
||||
import { ConfirmDialogComponent } from "../../shared/confirm-dialog/confirm-dialog.component";
|
||||
import { Tax } from "../../core/tax";
|
||||
import { ConfirmDialogComponent } from '../../shared/confirm-dialog/confirm-dialog.component';
|
||||
import { Tax } from '../../core/tax';
|
||||
|
||||
@Component({
|
||||
selector: 'app-sale-category-detail',
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { DataSource } from '@angular/cdk/collections';
|
||||
import { Observable } from 'rxjs';
|
||||
import { SaleCategory } from '../../core/sale-category';
|
||||
import { tap } from "rxjs/operators";
|
||||
import { tap } from 'rxjs/operators';
|
||||
|
||||
export class SaleCategoryListDatasource extends DataSource<SaleCategory> {
|
||||
private data: SaleCategory[];
|
||||
|
||||
@ -2,10 +2,10 @@ import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { SaleCategoryListDatasource } from './sale-category-list-datasource';
|
||||
import { SaleCategory } from '../../core/sale-category';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { MatTable } from "@angular/material";
|
||||
import { ToasterService } from "../../core/toaster.service";
|
||||
import { SaleCategoryService } from "../sale-category.service";
|
||||
import { BehaviorSubject } from "rxjs";
|
||||
import { MatTable } from '@angular/material';
|
||||
import { ToasterService } from '../../core/toaster.service';
|
||||
import { SaleCategoryService } from '../sale-category.service';
|
||||
import { BehaviorSubject } from 'rxjs';
|
||||
|
||||
@Component({
|
||||
selector: 'app-sale-category-list',
|
||||
@ -29,7 +29,7 @@ export class SaleCategoryListComponent implements OnInit {
|
||||
this.data = new BehaviorSubject([]);
|
||||
this.data.subscribe((data: SaleCategory[]) => {
|
||||
this.list = data;
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
Reference in New Issue
Block a user