From 7dacf0441cffdef8b4c52e8071204660f691bed9 Mon Sep 17 00:00:00 2001 From: diemarfe64635 Date: Wed, 10 Jun 2020 02:46:29 +0200 Subject: [PATCH] gute nacht --- app/components/rezept.hbs | 4 ++-- app/models/rezept.js | 8 ++++---- app/styles/app.css | 3 +-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/app/components/rezept.hbs b/app/components/rezept.hbs index 215f669..77d196d 100644 --- a/app/components/rezept.hbs +++ b/app/components/rezept.hbs @@ -10,7 +10,7 @@ {{produkt.attributes.titel}}, {{/each}}Gewürze
  • Personen:

    {{@rezept.personen}}
  • -
  • Dauer:

    {{@rezept.dauer}}
  • +
  • Dauer:

    {{@rezept.dauer}} Minuten
  • @@ -27,7 +27,7 @@ {{produkt.attributes.titel}}, {{/each}}Gewürze
  • Personen:

    {{@rezept.personen}}
  • -
  • Dauer:

    {{@rezept.dauer}}
  • +
  • Dauer:

    {{@rezept.dauer}} Minuten
  • diff --git a/app/models/rezept.js b/app/models/rezept.js index 8ba8219..61d00b4 100644 --- a/app/models/rezept.js +++ b/app/models/rezept.js @@ -5,11 +5,11 @@ export default class RezeptModel extends Model { @attr isSelected; @attr ('string') beschreibung; @attr kategorie; - @hasMany('produkt') produkte; + @attr produkte; @attr gewuerze; - @attr personen; - @attr dauer; - @attr bild; + @attr ('number') personen; + @attr ('number') dauer; + @attr ('string') bild; get status() { diff --git a/app/styles/app.css b/app/styles/app.css index bfa847f..8ef7619 100644 --- a/app/styles/app.css +++ b/app/styles/app.css @@ -182,8 +182,7 @@ p { .resultsRezept { display: flex; - - flex-direction: row; + flex-direction: column; width: 100%; }