Add nuxt-module for moment and remove vue-moment

This commit is contained in:
2019-02-04 09:38:58 +01:00
parent d51ff2e377
commit c5d20a50cb
5 changed files with 7 additions and 20 deletions
+6 -1
View File
@@ -5,7 +5,7 @@
</v-card-title>
<v-container>
<v-layout row wrap>
<v-flex xs12 sm6><strong>Datum:</strong> {{event.date}} ({{event.date | moment('dddd') }})</v-flex>
<v-flex xs12 sm6><strong>Datum:</strong> {{event.date}} ({{ weekday }})</v-flex>
<v-flex xs12 sm6 v-if="event.time"><strong>Tid:</strong> {{event.time}}</v-flex>
</v-layout>
<v-layout row wrap>
@@ -33,6 +33,11 @@
type: Function,
required: true
}
},
computed: {
weekday() {
return window.$nuxt.$moment(this.event.date).format('dddd');
}
}
};
</script>