Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/src/mixins/SharesMixin.js')
-rw-r--r--apps/files_sharing/src/mixins/SharesMixin.js21
1 files changed, 4 insertions, 17 deletions
diff --git a/apps/files_sharing/src/mixins/SharesMixin.js b/apps/files_sharing/src/mixins/SharesMixin.js
index 8fe6388e45b..15d3e2712cf 100644
--- a/apps/files_sharing/src/mixins/SharesMixin.js
+++ b/apps/files_sharing/src/mixins/SharesMixin.js
@@ -110,19 +110,6 @@ export default {
return moment().add(1, 'days')
},
- /**
- * Datepicker lang values
- * https://github.com/nextcloud/nextcloud-vue/pull/146
- * TODO: have this in vue-components
- *
- * @returns {int}
- */
- firstDay() {
- return window.firstDay
- ? window.firstDay
- : 0 // sunday as default
- },
-
// Datepicker language
lang() {
const weekdaysShort = window.dayNamesShort
@@ -131,16 +118,16 @@ export default {
const monthsShort = window.monthNamesShort
? window.monthNamesShort // provided by nextcloud
: ['Jan.', 'Feb.', 'Mar.', 'Apr.', 'May.', 'Jun.', 'Jul.', 'Aug.', 'Sep.', 'Oct.', 'Nov.', 'Dec.']
+ const firstDayOfWeek = window.firstDay ? window.firstDay : 0
return {
formatLocale: {
+ firstDayOfWeek,
+ monthsShort,
weekdaysMin: weekdaysShort,
weekdaysShort,
- monthsShort,
- },
- placeholder: {
- date: t('files_sharing', 'Select Date'),
},
+ monthFormat: 'MMM',
}
},