This commit is contained in:
2021-09-19 21:17:35 +00:00
parent deb771ffdf
commit 38e531f07a

View File

@@ -59,6 +59,7 @@
</v-menu> </v-menu>
</v-toolbar> </v-toolbar>
</v-sheet> </v-sheet>
<v-sheet :height="calendarHeight"> <v-sheet :height="calendarHeight">
<v-calendar <v-calendar
ref="calendar" ref="calendar"
@@ -107,6 +108,7 @@
</template> </template>
</v-calendar> </v-calendar>
<!-- MORE INFO DIALOG -->
<v-menu <v-menu
v-model="selectedOpen" v-model="selectedOpen"
:close-on-content-click="false" :close-on-content-click="false"
@@ -499,6 +501,7 @@ export default {
//console.log("DRAG DAY VIEW:", { mouse: mouse, tms: tms }); //console.log("DRAG DAY VIEW:", { mouse: mouse, tms: tms });
} else if (this.extendEvent && this.createStart !== null) { } else if (this.extendEvent && this.createStart !== null) {
//# EXTENDING PATH //# EXTENDING PATH
console.log("mouseMoveDayView:Extending path");
const mouseRounded = this.roundTime(mouse, false); const mouseRounded = this.roundTime(mouse, false);
//console.log("mouseMoveDayView mouseRounded:", mouseRounded); //console.log("mouseMoveDayView mouseRounded:", mouseRounded);
const min = Math.min(mouseRounded, this.createStart); const min = Math.min(mouseRounded, this.createStart);
@@ -557,19 +560,23 @@ export default {
} else { } else {
this.createStart = this.roundTime(mouse); this.createStart = this.roundTime(mouse);
//TODO: implement speed dial create new item here //TODO: implement speed dial create new item here
console.log( // console.log(
"startTime::STUB Create new element, popup FAB speeddial here" // "startTime::STUB Create new element, popup FAB speeddial here"
); // );
// //console.log("startTime, create start:", this.createStart); //console.log("startTime, create start:", this.createStart);
// this.extendEvent = { this.extendEvent = {
// name: `Event #${this.events.length}`, name: "-",
// color: this.rndElement(this.colors), color: this.$store.state.darkMode ? "white" : "black",
// start: this.createStart, textColor: this.$store.state.darkMode ? "black" : "white",
// end: this.createStart, start: this.createStart,
// timed: true end: this.createStart,
// }; timed: true,
// //console.log("startTime, pushing event:", this.extendEvent); type: 0,
// this.events.push(this.extendEvent); id: 0,
editable: true
};
//console.log("startTime, pushing event:", this.extendEvent);
this.events.push(this.extendEvent);
} }
}, },
roundTime(time, down = true) { roundTime(time, down = true) {