Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit b45b821c authored by Raimund Schlüßler's avatar Raimund Schlüßler Committed by GitHub
Browse files

Merge pull request #3471 from nextcloud/backport/3469/stable2.3

[stable2.3] Append the datepicker in the sidebar to body
parents 69cb006e 1aeafe06
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@
				:timezone-id="startTimezone"
				prefix="from"
				:is-all-day="isAllDay"
				:append-to-body="appendToBody"
				:user-timezone-id="userTimezone"
				@change="changeStart"
				@changeTimezone="changeStartTimezone" />
@@ -43,6 +44,7 @@
				:timezone-id="endTimezone"
				prefix="to"
				:is-all-day="isAllDay"
				:append-to-body="appendToBody"
				:user-timezone-id="userTimezone"
				@change="changeEnd"
				@changeTimezone="changeEndTimezone" />
@@ -158,6 +160,15 @@ export default {
			type: String,
			required: true,
		},
		/**
		 * Whether to append the datepickers to body or not.
		 * Necessary in the AppSidebar, otherwise it will be cut off be the
		 * AppSidebar edges.
		 */
		appendToBody: {
			type: Boolean,
			default: false,
		},
	},
	data() {
		return {
+5 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@
		:show-time-panel="showTimePanel"
		:show-week-number="showWeekNumbers"
		:use12h="showAmPm"
		:append-to-body="appendToBody"
		v-bind="$attrs"
		v-on="$listeners"
		@close="close"
@@ -134,6 +135,10 @@ export default {
			type: Date,
			default: null,
		},
		appendToBody: {
			type: Boolean,
			default: false,
		},
	},
	data() {
		return {
+1 −0
Original line number Diff line number Diff line
@@ -88,6 +88,7 @@
				:is-read-only="isReadOnly"
				:can-modify-all-day="canModifyAllDay"
				:user-timezone="currentUserTimezone"
				:append-to-body="true"
				@updateStartDate="updateStartDate"
				@updateStartTimezone="updateStartTimezone"
				@updateEndDate="updateEndDate"