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