Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[full-ci] Fix the current year selection in the date picker #8058

Merged
merged 1 commit into from
Dec 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Current year selection in the date picker

We applied a hotpatch to fix the selection of the current year in December in the date picker.

https://github.com/owncloud/web/pull/8058
https://github.com/owncloud/web/issues/8042
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"@cucumber/messages": "17.1.1",
"@cucumber/pretty-formatter": "1.0.0",
"@noble/hashes": "1.1.3",
"@ownclouders/design-system": "workspace:*",
"@ownclouders/babel-preset": "workspace:*",
"@ownclouders/design-system": "workspace:*",
"@ownclouders/eslint-config": "workspace:*",
"@ownclouders/prettier-config": "workspace:*",
"@ownclouders/tsconfig": "workspace:*",
Expand Down Expand Up @@ -125,5 +125,10 @@
"packageManager": "[email protected]",
"volta": {
"node": "16.18.1"
},
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
}
4 changes: 2 additions & 2 deletions packages/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"tippy.js": "^6.3.7",
"typescript": "^4.3.2",
"url-loader": "^4.1.1",
"v-calendar": "^2.3.2",
"v-calendar": "^2.3.4",
"vue-gettext": "^2.1.12",
"vue-inline-svg": "^2.0.0",
"vue-jest": "^3.0.4",
Expand All @@ -133,7 +133,7 @@
"postcss-import": "^12.0.1",
"postcss-url": "^9.0.0",
"tippy.js": "^6.3.7",
"v-calendar": "^2.3.2",
"v-calendar": "^2.3.4",
"vue": "^2.7.13",
"vue-inline-svg": "^2.0.0",
"vue-select": "^3.12.0",
Expand Down
1 change: 0 additions & 1 deletion packages/web-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"tippy.js": "^6.3.7",
"utf8": "^3.0.0",
"uuid": "^9.0.0",
"v-calendar": "^2.3.2",
"vue-async-computed": "^3.9.0",
"vue-concurrency": "4.0.0",
"vue-events": "^3.1.0",
Expand Down
13 changes: 13 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/lib/components/date-picker.umd.js b/lib/components/date-picker.umd.js
index 571ada2a0d82ed79833600b75eca9a5ec670660f..124df53b7b8fe976c5afcc4588783b3c626cd8e2 100644
--- a/lib/components/date-picker.umd.js
+++ b/lib/components/date-picker.umd.js
@@ -17351,7 +17351,7 @@ const _yearGroupCount = 12;
for (let year = startYear; year < endYear; year += 1) {
let enabled = false;

- for (let month = 1; month < 12; month++) {
+ for (let month = 1; month <= 12; month++) {
enabled = this.validator({
month,
year
29 changes: 23 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.