+
Nächste Reservierung: {{ formatDate(nextReservation.startDate, 'DD.MM.YYYY') }}
bis {{ formatDate(nextReservation.endDate, 'DD.MM.YYYY') }}
({{ nextReservation.notes }})
@@ -464,7 +481,7 @@ Vue.component('asset-reservation-modal', {
Neue Reservierung
-
+
@@ -509,6 +526,9 @@ Vue.component('asset-reservation-modal', {
isPermanent(val) {
if (val) {
this.newReservation.endDate = null;
+ if (!this.newReservation.startDate) {
+ this.newReservation.startDate = window.moment().startOf('day').unix();
+ }
}
}
},
diff --git a/public/plugins/vue/tt-components/tt-datepicker.js b/public/plugins/vue/tt-components/tt-datepicker.js
index 17b2df590..31eee0812 100644
--- a/public/plugins/vue/tt-components/tt-datepicker.js
+++ b/public/plugins/vue/tt-components/tt-datepicker.js
@@ -28,7 +28,7 @@ Vue.component('tt-date-picker', {
:disabled="disabled"
v-bind="additionalProps"
ref="input"
- style="cursor: pointer; background-color: #ffffff;"
+ style="cursor: pointer;"
>
{{ hint }}