Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7be7545137 | |||
| b46fd10f5a |
@ -1 +1 @@
|
||||
__version__ = "12.1.5"
|
||||
__version__ = "12.1.6"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "barker"
|
||||
version = "12.1.5"
|
||||
version = "12.1.6"
|
||||
description = "Point of Sale for a restaurant"
|
||||
authors = ["tanshu <git@tanshu.com>"]
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "bookie",
|
||||
"version": "12.1.5",
|
||||
"version": "12.1.6",
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"start": "ng serve",
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
export const environment = {
|
||||
production: true,
|
||||
ACCESS_TOKEN_REFRESH_MINUTES: 10, // refresh token 10 minutes before expiry
|
||||
version: '12.1.5',
|
||||
version: '12.1.6',
|
||||
};
|
||||
|
||||
export const dateFormat = {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<mat-dialog-content>
|
||||
<mat-tab-group>
|
||||
@for (item of list; track item) {
|
||||
@for (item of list | async; track item.id) {
|
||||
<mat-tab>
|
||||
<ng-template matTabLabel>
|
||||
<span>{{ item.name }}</span>
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import { CdkScrollable } from '@angular/cdk/scrolling';
|
||||
import { AsyncPipe } from '@angular/common';
|
||||
import { Component, Inject } from '@angular/core';
|
||||
import { MatBadge } from '@angular/material/badge';
|
||||
import { MatButton } from '@angular/material/button';
|
||||
@ -16,10 +17,20 @@ import { ModifierCategory } from '../../core/modifier-category';
|
||||
selector: 'app-modifiers',
|
||||
templateUrl: './modifiers.component.html',
|
||||
styleUrls: ['./modifiers.component.css'],
|
||||
imports: [CdkScrollable, MatDialogModule, MatTabsModule, MatChipsModule, MatBadge, MatCard, MatRipple, MatButton],
|
||||
imports: [
|
||||
CdkScrollable,
|
||||
MatDialogModule,
|
||||
MatTabsModule,
|
||||
MatChipsModule,
|
||||
MatBadge,
|
||||
MatCard,
|
||||
MatRipple,
|
||||
MatButton,
|
||||
AsyncPipe,
|
||||
],
|
||||
})
|
||||
export class ModifiersComponent {
|
||||
list: ModifierCategory[] = [];
|
||||
list: Observable<ModifierCategory[]>;
|
||||
selected: Modifier[];
|
||||
selectedIds: (string | undefined)[];
|
||||
|
||||
@ -27,9 +38,7 @@ export class ModifiersComponent {
|
||||
@Inject(MAT_DIALOG_DATA)
|
||||
public data: { list: Observable<ModifierCategory[]>; selected: Modifier[] },
|
||||
) {
|
||||
this.data.list.subscribe((list: ModifierCategory[]) => {
|
||||
this.list = list;
|
||||
});
|
||||
this.list = data.list;
|
||||
this.selected = data.selected;
|
||||
this.selectedIds = this.selected.map((e) => e.id);
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "frank"
|
||||
version = "12.1.5"
|
||||
version = "12.1.6"
|
||||
description = "Point of Sale for a restaurant"
|
||||
authors = ["tanshu <git@tanshu.com>"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user