Loading src/components/AppNavigation/AppNavigationHeader.vue +4 −4 Original line number Diff line number Diff line Loading @@ -42,13 +42,13 @@ export default { AppNavigationHeaderDatePicker, AppNavigationHeaderTodayButton, AppNavigationHeaderNewEvent, AppNavigationHeaderViewMenu AppNavigationHeaderViewMenu, }, props: { isPublic: { type: Boolean, required: true } } required: true, }, }, } </script> src/components/AppNavigation/AppNavigationHeader/AppNavigationHeaderDatePicker.vue +11 −11 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ import { getYYYYMMDDFromDate, getDateFromFirstdayParam, modifyDate modifyDate, } from '../../../utils/date.js' import formatDateRage from '../../../filters/dateRangeFormat.js' import DatePicker from '../../Shared/DatePicker.vue' Loading @@ -62,14 +62,14 @@ import DatePicker from '../../Shared/DatePicker.vue' export default { name: 'AppNavigationHeaderDatePicker', components: { DatePicker DatePicker, }, filters: { formatDateRage formatDateRage, }, data: function() { return { isDatepickerOpen: false isDatepickerOpen: false, } }, computed: { Loading Loading @@ -104,7 +104,7 @@ export default { }, view() { return this.$route.params.view } }, }, methods: { navigateToPreviousTimeRange() { Loading @@ -119,20 +119,20 @@ export default { switch (this.$route.params.view) { case 'timeGridDay': newDate = modifyDate(this.selectedDate, { day: factor day: factor, }) break case 'timeGridWeek': newDate = modifyDate(this.selectedDate, { week: factor week: factor, }) break case 'dayGridMonth': default: newDate = modifyDate(this.selectedDate, { month: factor month: factor, }) break } Loading @@ -142,7 +142,7 @@ export default { navigateToDate(date) { const name = this.$route.name const params = Object.assign({}, this.$route.params, { firstDay: getYYYYMMDDFromDate(date) firstDay: getYYYYMMDDFromDate(date), }) // Don't push new route when day didn't change Loading @@ -162,7 +162,7 @@ export default { doNothing() { // This function does nothing in itself, // it only captures and prevents the mousedown and mouseup of vue2-datepicker } } }, }, } </script> src/components/AppNavigation/AppNavigationHeader/AppNavigationHeaderNewEvent.vue +3 −3 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ export default { const params = Object.assign({}, this.$store.state.route.params, { allDay: '0', dtstart: String(Math.floor(start.getTime() / 1000)), dtend: String(Math.floor(end.getTime() / 1000)) dtend: String(Math.floor(end.getTime() / 1000)), }) // Don't push new route when day didn't change Loading @@ -64,7 +64,7 @@ export default { } this.$router.push({ name, params }) } } }, }, } </script> src/components/AppNavigation/AppNavigationHeader/AppNavigationHeaderTodayButton.vue +4 −4 Original line number Diff line number Diff line Loading @@ -38,13 +38,13 @@ export default { computed: { title() { return moment().format('ll') } }, }, methods: { today() { const name = this.$route.name const params = Object.assign({}, this.$route.params, { firstDay: 'now' firstDay: 'now', }) // Don't push new route when day didn't change Loading @@ -53,7 +53,7 @@ export default { } this.$router.push({ name, params }) } } }, }, } </script> src/components/AppNavigation/AppNavigationHeader/AppNavigationHeaderViewMenu.vue +8 −8 Original line number Diff line number Diff line Loading @@ -38,22 +38,22 @@ export default { name: 'AppNavigationHeaderViewMenu', components: { Actions, ActionButton ActionButton, }, computed: { views() { return [{ id: 'timeGridDay', icon: 'icon-view-day', label: this.$t('calendar', 'Day') label: this.$t('calendar', 'Day'), }, { id: 'timeGridWeek', icon: 'icon-view-week', label: this.$t('calendar', 'Week') label: this.$t('calendar', 'Week'), }, { id: 'dayGridMonth', icon: 'icon-view-module', label: this.$t('calendar', 'Month') label: this.$t('calendar', 'Month'), }] }, defaultIcon() { Loading @@ -64,13 +64,13 @@ export default { } return 'icon-toggle-pictures' } }, }, methods: { selectView(viewName) { const name = this.$route.name const params = Object.assign({}, this.$route.params, { view: viewName view: viewName, }) // Don't push new route when view didn't change Loading @@ -79,7 +79,7 @@ export default { } this.$router.push({ name, params }) } } }, }, } </script> Loading
src/components/AppNavigation/AppNavigationHeader.vue +4 −4 Original line number Diff line number Diff line Loading @@ -42,13 +42,13 @@ export default { AppNavigationHeaderDatePicker, AppNavigationHeaderTodayButton, AppNavigationHeaderNewEvent, AppNavigationHeaderViewMenu AppNavigationHeaderViewMenu, }, props: { isPublic: { type: Boolean, required: true } } required: true, }, }, } </script>
src/components/AppNavigation/AppNavigationHeader/AppNavigationHeaderDatePicker.vue +11 −11 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ import { getYYYYMMDDFromDate, getDateFromFirstdayParam, modifyDate modifyDate, } from '../../../utils/date.js' import formatDateRage from '../../../filters/dateRangeFormat.js' import DatePicker from '../../Shared/DatePicker.vue' Loading @@ -62,14 +62,14 @@ import DatePicker from '../../Shared/DatePicker.vue' export default { name: 'AppNavigationHeaderDatePicker', components: { DatePicker DatePicker, }, filters: { formatDateRage formatDateRage, }, data: function() { return { isDatepickerOpen: false isDatepickerOpen: false, } }, computed: { Loading Loading @@ -104,7 +104,7 @@ export default { }, view() { return this.$route.params.view } }, }, methods: { navigateToPreviousTimeRange() { Loading @@ -119,20 +119,20 @@ export default { switch (this.$route.params.view) { case 'timeGridDay': newDate = modifyDate(this.selectedDate, { day: factor day: factor, }) break case 'timeGridWeek': newDate = modifyDate(this.selectedDate, { week: factor week: factor, }) break case 'dayGridMonth': default: newDate = modifyDate(this.selectedDate, { month: factor month: factor, }) break } Loading @@ -142,7 +142,7 @@ export default { navigateToDate(date) { const name = this.$route.name const params = Object.assign({}, this.$route.params, { firstDay: getYYYYMMDDFromDate(date) firstDay: getYYYYMMDDFromDate(date), }) // Don't push new route when day didn't change Loading @@ -162,7 +162,7 @@ export default { doNothing() { // This function does nothing in itself, // it only captures and prevents the mousedown and mouseup of vue2-datepicker } } }, }, } </script>
src/components/AppNavigation/AppNavigationHeader/AppNavigationHeaderNewEvent.vue +3 −3 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ export default { const params = Object.assign({}, this.$store.state.route.params, { allDay: '0', dtstart: String(Math.floor(start.getTime() / 1000)), dtend: String(Math.floor(end.getTime() / 1000)) dtend: String(Math.floor(end.getTime() / 1000)), }) // Don't push new route when day didn't change Loading @@ -64,7 +64,7 @@ export default { } this.$router.push({ name, params }) } } }, }, } </script>
src/components/AppNavigation/AppNavigationHeader/AppNavigationHeaderTodayButton.vue +4 −4 Original line number Diff line number Diff line Loading @@ -38,13 +38,13 @@ export default { computed: { title() { return moment().format('ll') } }, }, methods: { today() { const name = this.$route.name const params = Object.assign({}, this.$route.params, { firstDay: 'now' firstDay: 'now', }) // Don't push new route when day didn't change Loading @@ -53,7 +53,7 @@ export default { } this.$router.push({ name, params }) } } }, }, } </script>
src/components/AppNavigation/AppNavigationHeader/AppNavigationHeaderViewMenu.vue +8 −8 Original line number Diff line number Diff line Loading @@ -38,22 +38,22 @@ export default { name: 'AppNavigationHeaderViewMenu', components: { Actions, ActionButton ActionButton, }, computed: { views() { return [{ id: 'timeGridDay', icon: 'icon-view-day', label: this.$t('calendar', 'Day') label: this.$t('calendar', 'Day'), }, { id: 'timeGridWeek', icon: 'icon-view-week', label: this.$t('calendar', 'Week') label: this.$t('calendar', 'Week'), }, { id: 'dayGridMonth', icon: 'icon-view-module', label: this.$t('calendar', 'Month') label: this.$t('calendar', 'Month'), }] }, defaultIcon() { Loading @@ -64,13 +64,13 @@ export default { } return 'icon-toggle-pictures' } }, }, methods: { selectView(viewName) { const name = this.$route.name const params = Object.assign({}, this.$route.params, { view: viewName view: viewName, }) // Don't push new route when view didn't change Loading @@ -79,7 +79,7 @@ export default { } this.$router.push({ name, params }) } } }, }, } </script>