Skip to content
This repository has been archived by the owner on Jul 10, 2018. It is now read-only.

Commit

Permalink
Ignoring the 'other' field from the parser service's results (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch committed May 3, 2018
1 parent 4cdaadf commit efd0e0f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/app/_models/parse-result.ts
Expand Up @@ -3,7 +3,6 @@ export class IngredientParsed {
public quantity?: number,
public unit?: string,
public name?: string,
public other?: string,
public comment?: string) {}
}

Expand Down
1 change: 0 additions & 1 deletion src/app/_services/parser.service.spec.ts
Expand Up @@ -34,7 +34,6 @@ describe('ParserService', () => {
quantity: 2.0,
unit: 'tablespoon',
name: 'Parmesan cheese',
other: '2',
comment: 'shaved',
},
};
Expand Down
3 changes: 1 addition & 2 deletions src/app/public/home-page/home-page.component.html
Expand Up @@ -18,8 +18,7 @@
<mat-list-item role="listitem"><span class="fieldName">Quantity</span>: {{ parseResult.ingredientParsed.quantity }}</mat-list-item>
<mat-list-item role="listitem"><span class="fieldName">Unit</span>: {{ parseResult.ingredientParsed.unit }}</mat-list-item>
<mat-list-item role="listitem"><span class="fieldName">Name</span>: {{ parseResult.ingredientParsed.name }}</mat-list-item>
<mat-list-item role="listitem"><span class="fieldName">Other</span>: {{ parseResult.ingredientParsed.other }}</mat-list-item>
<mat-list-item role="listitem"><span class="fieldName">Comment</span>: {{ parseResult.ingredientParsed.comment }}</mat-list-item>
<mat-list-item role="listitem"><span class="fieldName">Preparation note</span>: {{ parseResult.ingredientParsed.comment }}</mat-list-item>
</mat-list>
<mat-list role="list" *ngIf="parseResult">
<mat-list-item role="listitem"><span class="fieldName">Requests remaining</span>: {{ parseResult.requestsRemaining }}</mat-list-item>
Expand Down

0 comments on commit efd0e0f

Please sign in to comment.