File tree Expand file tree Collapse file tree 3 files changed +156
-126
lines changed
client/src/components/dates Expand file tree Collapse file tree 3 files changed +156
-126
lines changed Original file line number Diff line number Diff line change 11<template >
2-
2+ <div class =" continuous-reccurence-date" >
3+ <continuous :value =" date" ></continuous >&ensp ; <time >{{ text }}</time >
4+ </div >
35</template >
46
57<script >
8+ import continuous from " ./continuous.vue" ;
9+ import { RRule } from " rrule" ;
610export default {
7-
8- }
11+ props: {
12+ value: Object ,
13+ },
14+ components: {
15+ continuous,
16+ },
17+ data () {
18+ return {};
19+ },
20+ computed: {
21+ rrule () {
22+ return RRule .fromString (this .value .rrule );
23+ },
24+ text () {
25+ return this .rrule .toText ();
26+ },
27+ date () {
28+ return {
29+ start: this .value .start ,
30+ end: this .value .end ,
31+ hasTime: this .value .hasTime ,
32+ };
33+ },
34+ },
35+ };
936 </script >
1037
1138<style >
12-
39+ .continuous-reccurence-date {
40+ display : flex ;
41+ flex-direction : row ;
42+ align-items : baseline ;
43+ }
1344 </style >
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ export default {
2424 },
2525 computed: {
2626 hasStartDate () {
27- console .log (this .value .eventId );
2827 return this .rrule .origOptions .dtstart != undefined ;
2928 },
3029 rrule () {
You can’t perform that action at this time.
0 commit comments