diff --git a/webapp/components/Category.vue b/webapp/components/Category.vue index aa4eee877..af602d4d0 100644 --- a/webapp/components/Category.vue +++ b/webapp/components/Category.vue @@ -1,16 +1,19 @@ diff --git a/webapp/components/RelativeDateTime.vue b/webapp/components/RelativeDateTime.vue index da5737d1d..67589e0a0 100644 --- a/webapp/components/RelativeDateTime.vue +++ b/webapp/components/RelativeDateTime.vue @@ -6,10 +6,11 @@ import moment from 'moment' export default { - name: 'hc-relative-date-time', + name: 'HcRelativeDateTime', props: { dateTime: { - type: [Date, String] + type: [Date, String], + required: true } }, data() { @@ -33,6 +34,15 @@ export default { this.calcRelativeDateTime() } }, + created() { + this.calcRelativeDateTime() + }, + mounted() { + this.calcRelativeDateTime() + }, + destroyed() { + clearTimeout(this.timeout) + }, methods: { calcRelativeDateTime() { clearTimeout(this.timeout) @@ -58,15 +68,6 @@ export default { this.calcRelativeDateTime() }, this.interval) } - }, - created() { - this.calcRelativeDateTime() - }, - mounted() { - this.calcRelativeDateTime() - }, - destroyed() { - clearTimeout(this.timeout) } } diff --git a/webapp/components/Tag.vue b/webapp/components/Tag.vue index af2985b5f..70e1cf2a2 100644 --- a/webapp/components/Tag.vue +++ b/webapp/components/Tag.vue @@ -1,15 +1,15 @@ diff --git a/webapp/components/User.vue b/webapp/components/User.vue index bd9189a06..4347c73fc 100644 --- a/webapp/components/User.vue +++ b/webapp/components/User.vue @@ -3,16 +3,36 @@
- +
- Anonymus + Anonymus
- -