diff --git a/src/app/brew/brew-choose-preparation-to-brew/brew-choose-preparation-to-brew.component.html b/src/app/brew/brew-choose-preparation-to-brew/brew-choose-preparation-to-brew.component.html index d26de8fd3..a527447ea 100644 --- a/src/app/brew/brew-choose-preparation-to-brew/brew-choose-preparation-to-brew.component.html +++ b/src/app/brew/brew-choose-preparation-to-brew/brew-choose-preparation-to-brew.component.html @@ -7,7 +7,7 @@ {{"PRESET_BREW_TITLE" | translate }} - + {{prep.name}} ({{"LAST_USE" | translate}}: {{lastUsed(prep) | formatDate:["DD.MM.YYYY"]}} -) diff --git a/src/app/brew/brew-choose-preparation-to-brew/brew-choose-preparation-to-brew.component.ts b/src/app/brew/brew-choose-preparation-to-brew/brew-choose-preparation-to-brew.component.ts index 341693c14..6a7c10080 100644 --- a/src/app/brew/brew-choose-preparation-to-brew/brew-choose-preparation-to-brew.component.ts +++ b/src/app/brew/brew-choose-preparation-to-brew/brew-choose-preparation-to-brew.component.ts @@ -16,6 +16,8 @@ import { UIHelper } from '../../../services/uiHelper'; export class BrewChoosePreparationToBrewComponent implements OnInit { public static COMPONENT_ID: string = 'brew-choose-preparation-to-brew'; + public preparationMethods: Array = []; + constructor( private readonly modalController: ModalController, private readonly uiBrewStorage: UIBrewStorage, @@ -24,7 +26,9 @@ export class BrewChoosePreparationToBrewComponent implements OnInit { private readonly uiHelper: UIHelper ) {} - public ngOnInit() {} + public ngOnInit() { + this.preparationMethods = this.getPreparationMethods(); + } public getPreparationMethods(): Array { const allEntries = this.uiPreparationStorage