disable also date on datepicker
This commit is contained in:
parent
efc55e0127
commit
22fb12071d
@ -2661,6 +2661,9 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
...(0,vuex__WEBPACK_IMPORTED_MODULE_6__.mapState)({
|
...(0,vuex__WEBPACK_IMPORTED_MODULE_6__.mapState)({
|
||||||
locale: state => state.settings.momentLocale
|
locale: state => state.settings.momentLocale
|
||||||
}),
|
}),
|
||||||
|
minimumDate() {
|
||||||
|
return this.isAdmin ? new Date(this.$store.state.davRestrictions.minimumDate) : new Date();
|
||||||
|
},
|
||||||
selectedDate() {
|
selectedDate() {
|
||||||
var _this$$route$params$f, _this$$route$params;
|
var _this$$route$params$f, _this$$route$params;
|
||||||
if (this.isWidget) {
|
if (this.isWidget) {
|
||||||
@ -14341,7 +14344,8 @@ var render = function render() {
|
|||||||
date: _vm.selectedDate,
|
date: _vm.selectedDate,
|
||||||
"is-all-day": true,
|
"is-all-day": true,
|
||||||
open: _vm.isDatepickerOpen,
|
open: _vm.isDatepickerOpen,
|
||||||
type: _vm.view === "multiMonthYear" ? "year" : "date"
|
type: _vm.view === "multiMonthYear" ? "year" : "date",
|
||||||
|
min: _vm.minimumDate
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
"update:open": function ($event) {
|
"update:open": function ($event) {
|
||||||
@ -310146,4 +310150,4 @@ appointmentsConfigsStore.addInitialConfigs((0,_nextcloud_initial_state__WEBPACK_
|
|||||||
|
|
||||||
/******/ })()
|
/******/ })()
|
||||||
;
|
;
|
||||||
//# sourceMappingURL=calendar-main.js.map?v=6e05b1362418d8b25cf3
|
//# sourceMappingURL=calendar-main.js.map?v=a363c92b823c419b9f39
|
||||||
File diff suppressed because one or more lines are too long
@ -8865,7 +8865,7 @@ window._registerCustomPickerElement = _;
|
|||||||
/******/ // This function allow to reference async chunks
|
/******/ // This function allow to reference async chunks
|
||||||
/******/ __webpack_require__.u = (chunkId) => {
|
/******/ __webpack_require__.u = (chunkId) => {
|
||||||
/******/ // return url for filenames based on template
|
/******/ // return url for filenames based on template
|
||||||
/******/ return "calendar-" + chunkId + ".js?v=" + {"vendors-node_modules_vue_dist_vue_runtime_esm_js":"7e3171593bdc0f62040b","vendors-node_modules_nextcloud_capabilities_dist_index_js-node_modules_nextcloud_vue-select_d-877981":"3533c597c61a45709c85","vendors-node_modules_nextcloud_cdav-library_dist_dist_js-node_modules_nextcloud_logger_dist_i-36c16b":"c3b3db23da041c717fc1","vendors-node_modules_vue-material-design-icons_CalendarBlank_vue-node_modules_vue-material-de-e2c1f8":"aa18371467d4d17269b3","vendors-node_modules_vue-material-design-icons_CalendarBlankOutline_vue-node_modules_nextclou-4adead":"e4ffc04ac1c7ab0c5950","vendors-node_modules_autosize_dist_autosize_esm_js-node_modules_html-entities_lib_index_js-no-4072c5":"60939d15b29e9da9693b","src_models_rfcProps_js-src_services_caldavService_js-src_services_talkService_js-src_services-8a2790":"94fac30d128df46a89a6","src_fullcalendar_eventSources_eventSourceFunction_js-src_utils_moment_js-data_image_svg_xml_3-b73258":"740a2859d1f364b508c1","src_views_Calendar_vue-data_image_svg_xml_3csvg_20xmlns_27http_www_w3_org_2000_svg_27_20heigh-4a4254":"7275f18aa85e476527ee","vendors-node_modules_webdav_dist_web_index_js":"454da8f908d41b47c607","src_store_index_js":"8109663b3d3c7da4f760","vendors-node_modules_path-browserify_index_js-node_modules_nextcloud_dialogs_dist_chunks_Dial-e0595f":"6c303f18660c1428dc28","node_modules_nextcloud_dialogs_dist_legacy_mjs":"8be838e4c6e9aae56c87","vendors-node_modules_nextcloud_dialogs_dist_chunks_FilePicker-8ibBgPg__mjs":"ea54a36450de178d1141","public-calendar-subscription-picker":"4c85129ecec907c712f8","vendors-node_modules_moment_locale_af_js-node_modules_moment_locale_ar-dz_js-node_modules_mom-582c96":"ce1bed825f57dd1d117a","node_modules_moment_locale_sync_recursive_":"4bc2c39c5e0ff182c2e3"}[chunkId] + "";
|
/******/ return "calendar-" + chunkId + ".js?v=" + {"vendors-node_modules_vue_dist_vue_runtime_esm_js":"7e3171593bdc0f62040b","vendors-node_modules_nextcloud_capabilities_dist_index_js-node_modules_nextcloud_vue-select_d-877981":"3533c597c61a45709c85","vendors-node_modules_nextcloud_cdav-library_dist_dist_js-node_modules_nextcloud_logger_dist_i-36c16b":"c3b3db23da041c717fc1","vendors-node_modules_vue-material-design-icons_CalendarBlank_vue-node_modules_vue-material-de-e2c1f8":"aa18371467d4d17269b3","vendors-node_modules_vue-material-design-icons_CalendarBlankOutline_vue-node_modules_nextclou-4adead":"e4ffc04ac1c7ab0c5950","vendors-node_modules_autosize_dist_autosize_esm_js-node_modules_html-entities_lib_index_js-no-4072c5":"60939d15b29e9da9693b","src_models_rfcProps_js-src_services_caldavService_js-src_services_talkService_js-src_services-8a2790":"94fac30d128df46a89a6","src_fullcalendar_eventSources_eventSourceFunction_js-src_utils_moment_js-data_image_svg_xml_3-b73258":"740a2859d1f364b508c1","src_views_Calendar_vue-data_image_svg_xml_3csvg_20xmlns_27http_www_w3_org_2000_svg_27_20heigh-4a4254":"99286664ee6bd9d7b154","vendors-node_modules_webdav_dist_web_index_js":"454da8f908d41b47c607","src_store_index_js":"8109663b3d3c7da4f760","vendors-node_modules_path-browserify_index_js-node_modules_nextcloud_dialogs_dist_chunks_Dial-e0595f":"6c303f18660c1428dc28","node_modules_nextcloud_dialogs_dist_legacy_mjs":"8be838e4c6e9aae56c87","vendors-node_modules_nextcloud_dialogs_dist_chunks_FilePicker-8ibBgPg__mjs":"ea54a36450de178d1141","public-calendar-subscription-picker":"4c85129ecec907c712f8","vendors-node_modules_moment_locale_af_js-node_modules_moment_locale_ar-dz_js-node_modules_mom-582c96":"ce1bed825f57dd1d117a","node_modules_moment_locale_sync_recursive_":"4bc2c39c5e0ff182c2e3"}[chunkId] + "";
|
||||||
/******/ };
|
/******/ };
|
||||||
/******/ })();
|
/******/ })();
|
||||||
/******/
|
/******/
|
||||||
@ -9115,4 +9115,4 @@ __webpack_require__.p = (0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_1__.linkTo
|
|||||||
|
|
||||||
/******/ })()
|
/******/ })()
|
||||||
;
|
;
|
||||||
//# sourceMappingURL=calendar-reference.js.map?v=42974b04c4803f55f86d
|
//# sourceMappingURL=calendar-reference.js.map?v=9026bcb01b3dbafc7c47
|
||||||
File diff suppressed because one or more lines are too long
@ -96,6 +96,9 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
...(0,vuex__WEBPACK_IMPORTED_MODULE_6__.mapState)({
|
...(0,vuex__WEBPACK_IMPORTED_MODULE_6__.mapState)({
|
||||||
locale: state => state.settings.momentLocale
|
locale: state => state.settings.momentLocale
|
||||||
}),
|
}),
|
||||||
|
minimumDate() {
|
||||||
|
return this.isAdmin ? new Date(this.$store.state.davRestrictions.minimumDate) : new Date();
|
||||||
|
},
|
||||||
selectedDate() {
|
selectedDate() {
|
||||||
var _this$$route$params$f, _this$$route$params;
|
var _this$$route$params$f, _this$$route$params;
|
||||||
if (this.isWidget) {
|
if (this.isWidget) {
|
||||||
@ -8346,7 +8349,8 @@ var render = function render() {
|
|||||||
date: _vm.selectedDate,
|
date: _vm.selectedDate,
|
||||||
"is-all-day": true,
|
"is-all-day": true,
|
||||||
open: _vm.isDatepickerOpen,
|
open: _vm.isDatepickerOpen,
|
||||||
type: _vm.view === "multiMonthYear" ? "year" : "date"
|
type: _vm.view === "multiMonthYear" ? "year" : "date",
|
||||||
|
min: _vm.minimumDate
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
"update:open": function ($event) {
|
"update:open": function ($event) {
|
||||||
@ -27347,4 +27351,4 @@ module.exports = "data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/sv
|
|||||||
/***/ })
|
/***/ })
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
//# sourceMappingURL=calendar-src_views_Calendar_vue-data_image_svg_xml_3csvg_20xmlns_27http_www_w3_org_2000_svg_27_20heigh-4a4254.js.map?v=7275f18aa85e476527ee
|
//# sourceMappingURL=calendar-src_views_Calendar_vue-data_image_svg_xml_3csvg_20xmlns_27http_www_w3_org_2000_svg_27_20heigh-4a4254.js.map?v=99286664ee6bd9d7b154
|
||||||
File diff suppressed because one or more lines are too long
@ -47,6 +47,7 @@
|
|||||||
:is-all-day="true"
|
:is-all-day="true"
|
||||||
:open.sync="isDatepickerOpen"
|
:open.sync="isDatepickerOpen"
|
||||||
:type="view === 'multiMonthYear' ? 'year' : 'date'"
|
:type="view === 'multiMonthYear' ? 'year' : 'date'"
|
||||||
|
:min="minimumDate"
|
||||||
@change="navigateToDate" />
|
@change="navigateToDate" />
|
||||||
<NcButton v-if="!isWidget"
|
<NcButton v-if="!isWidget"
|
||||||
v-shortkey="nextShortKeyConf"
|
v-shortkey="nextShortKeyConf"
|
||||||
@ -105,6 +106,9 @@ export default {
|
|||||||
...mapState({
|
...mapState({
|
||||||
locale: (state) => state.settings.momentLocale,
|
locale: (state) => state.settings.momentLocale,
|
||||||
}),
|
}),
|
||||||
|
minimumDate(){
|
||||||
|
return this.isAdmin ? new Date(this.$store.state.davRestrictions.minimumDate) : new Date()
|
||||||
|
},
|
||||||
selectedDate() {
|
selectedDate() {
|
||||||
if (this.isWidget) {
|
if (this.isWidget) {
|
||||||
return getDateFromFirstdayParam(this.$store.getters.widgetDate)
|
return getDateFromFirstdayParam(this.$store.getters.widgetDate)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user