From f13c16dd9387a8eedda2d4dc897b30bff78625d6 Mon Sep 17 00:00:00 2001 From: Christian Seyfferth Date: Wed, 16 Jan 2019 18:58:29 +0100 Subject: [PATCH] nice fixes --- app.js | 8 ++++++++ index.html | 13 +++++++------ js/shift.js | 4 +++- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/app.js b/app.js index e2faed7..b9dc0ed 100644 --- a/app.js +++ b/app.js @@ -183,10 +183,18 @@ var app = new Vue({ deep: true } }, + + computed: { + groupedTermine() { + return _.groupBy(this.shifts, e => e.Datum); + } + }, + methods: { updateArten(value){ this.selectedRule.Arten = value; }, + updateTitel(value){ this.selectedRule.Titel = value; }, diff --git a/index.html b/index.html index 5bd859e..d0afa39 100644 --- a/index.html +++ b/index.html @@ -37,15 +37,15 @@
-
-
-

Termine

+
+
+

Termine

@@ -59,14 +59,14 @@
- {{s.FormattedDatum}} + {{s.FormattedDatum}} {{s.Wochentag}} {{s.VEventTitle}} - {{ s.Ort }} + location_on{{ s.Ort }} {{s.Beginn}} - {{s.Ende}} @@ -254,6 +254,7 @@ style="display:none;"> + diff --git a/js/shift.js b/js/shift.js index cd9fd2b..c24e024 100644 --- a/js/shift.js +++ b/js/shift.js @@ -265,7 +265,9 @@ Shift.thaw = function (jsonShift) { art: jsonShift._kind, name: jsonShift._name, datum: begin, - beschreibung: jsonShift._description + beschreibung: jsonShift._description, + ort: jsonShift._ort, + }); shift.id = jsonShift.id; shift.Dauer = moment.duration(jsonShift._duration);