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:
@ -1,9 +1,9 @@
|
||||
import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from '@angular/core';
|
||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||
import { GuestBookService } from "../guest-book.service";
|
||||
import { ToasterService } from "../../core/toaster.service";
|
||||
import { GuestBook } from "../guest-book";
|
||||
import { ActivatedRoute, Router } from "@angular/router";
|
||||
import { GuestBookService } from '../guest-book.service';
|
||||
import { ToasterService } from '../../core/toaster.service';
|
||||
import { GuestBook } from '../guest-book';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
selector: 'app-guest-book-detail',
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/router';
|
||||
import { Observable } from 'rxjs/internal/Observable';
|
||||
import { GuestBookList } from "./guest-book";
|
||||
import { GuestBookList } from './guest-book';
|
||||
import { GuestBookService } from './guest-book.service';
|
||||
|
||||
@Injectable({
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { DataSource } from '@angular/cdk/collections';
|
||||
import { Observable } from 'rxjs';
|
||||
import { GuestBook } from "../guest-book";
|
||||
import { GuestBook } from '../guest-book';
|
||||
|
||||
export class GuestBookListDataSource extends DataSource<GuestBook> {
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@
|
||||
<ng-container matColumnDef="action">
|
||||
<mat-header-cell *matHeaderCellDef class="center">Action</mat-header-cell>
|
||||
<mat-cell *matCellDef="let row" class="center">
|
||||
<button mat-icon-button [routerLink]="['/running-tables']" [queryParams]="{guest: row.id}">
|
||||
<button mat-icon-button [routerLink]="['/sales']" [queryParams]="{guest: row.id}">
|
||||
Seat
|
||||
</button>
|
||||
<button mat-icon-button [routerLink]="['/guest-book/', row.id]">
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ActivatedRoute } from "@angular/router";
|
||||
import { FormBuilder, FormGroup } from "@angular/forms";
|
||||
import { BehaviorSubject } from "rxjs";
|
||||
import { map } from "rxjs/operators";
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { FormBuilder, FormGroup } from '@angular/forms';
|
||||
import { BehaviorSubject } from 'rxjs';
|
||||
import { map } from 'rxjs/operators';
|
||||
import * as moment from 'moment';
|
||||
import {GuestBook, GuestBookList} from "../guest-book";
|
||||
import { GuestBookService } from "../guest-book.service";
|
||||
import {GuestBook, GuestBookList} from '../guest-book';
|
||||
import { GuestBookService } from '../guest-book.service';
|
||||
import { GuestBookListDataSource } from './guest-book-list-datasource';
|
||||
|
||||
@Component({
|
||||
@ -47,7 +47,7 @@ export class GuestBookListComponent implements OnInit {
|
||||
this.route.data
|
||||
.subscribe((data: { list: GuestBookList }) => {
|
||||
this.data.next(data.list.list);
|
||||
this.form.setValue({"date": moment(data.list.date, 'DD-MMM-YYYY').toDate()});
|
||||
this.form.setValue({'date': moment(data.list.date, 'DD-MMM-YYYY').toDate()});
|
||||
});
|
||||
this.dataSource = new GuestBookListDataSource(this.data);
|
||||
}
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
import { GuestBookListComponent } from "./guest-book-list/guest-book-list.component";
|
||||
import { GuestBookDetailComponent } from "./guest-book-detail/guest-book-detail.component";
|
||||
import { AuthGuard } from "../auth/auth-guard.service";
|
||||
import { GuestBookListResolver } from "./guest-book-list-resolver.service";
|
||||
import { GuestBookDetailResolver } from "./guest-book-detail-resolver.service";
|
||||
import { GuestBookListComponent } from './guest-book-list/guest-book-list.component';
|
||||
import { GuestBookDetailComponent } from './guest-book-detail/guest-book-detail.component';
|
||||
import { AuthGuard } from '../auth/auth-guard.service';
|
||||
import { GuestBookListResolver } from './guest-book-list-resolver.service';
|
||||
import { GuestBookDetailResolver } from './guest-book-detail-resolver.service';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user