Skip to content

Commit

Permalink
Added roaster to beans
Browse files Browse the repository at this point in the history
  • Loading branch information
graphefruit committed Dec 4, 2018
1 parent f32484f commit 6ebbc04
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/classes/bean/bean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export class Bean implements IBean {
public roastingDate: string;
public note: string;
public filePath: string;
public roaster:string;
public config: Config;
public roast:ROASTS_ENUM;

Expand All @@ -17,6 +18,7 @@ export class Bean implements IBean {
this.roastingDate = "";
this.note = "";
this.filePath = "";
this.roaster="";
this.config = new Config();
this.roast = <ROASTS_ENUM>"UNKNOWN";
}
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/bean/iBean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface IBean {
roastingDate: string;
note: string;
filePath: string;
roaster:string;
roast:ROASTS_ENUM;
config:IConfig;
}
Expand Down
6 changes: 6 additions & 0 deletions src/pages/beans/add/beans-add.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
<ion-datetime min="2000-01-01" max="2999-12-31" displayFormat="DD.MM.YYYY" [(ngModel)]="data.roastingDate" name="roastingDate"
#roastingDate="ngModel"></ion-datetime>
</ion-item>
<ion-item>
<ion-label floating >Röster</ion-label>
<ion-input [(ngModel)]="data.roaster" name="roaster" type="text" #roaster="ngModel" spellcheck="false"
autocapitalize="off" required>
</ion-input>
</ion-item>
<ion-item>
<ion-label floating>Notizen</ion-label>
<ion-textarea autocomplete="true" spellcheck="true" autocorrect="true" name="note" #note="ngModel" rows="5" [(ngModel)]="data.note"></ion-textarea>
Expand Down
6 changes: 6 additions & 0 deletions src/pages/beans/edit/beans-edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
name="roastingDate"
#roastingDate="ngModel"></ion-datetime>
</ion-item>
<ion-item>
<ion-label floating >Röster</ion-label>
<ion-input [(ngModel)]="data.roaster" name="roaster" type="text" #roaster="ngModel" spellcheck="false"
autocapitalize="off" required>
</ion-input>
</ion-item>
<ion-item>
<ion-label floating>Notizen</ion-label>
<ion-textarea autocomplete="true" spellcheck="true" autocorrect="true" name="note" #note="ngModel" rows="5"
Expand Down

0 comments on commit 6ebbc04

Please sign in to comment.