This commit is contained in:
2021-10-06 17:00:33 +00:00
parent 63d232a627
commit 87c40e7259

View File

@@ -27,6 +27,7 @@
no-label
select-only
v-model="tags"
@input="refresh"
></gz-tag-picker>
</template>
<v-btn
@@ -403,10 +404,19 @@ export default {
formUserOptions: {},
tempFirstTime: null,
lastMouseDownMS: null,
tags: []
tags: [],
lastStart: null,
lastEnd: null
};
},
methods: {
async refresh() {
console.log("REFRESH");
await this.fetchEvents({ start: null, end: null });
//this.focus = null; //"";
// this.categories.splice(0);
// this.$refs.calendar.checkChange();
},
openObject: function(type, id) {
window.$gz.eventBus.$emit("openobject", {
type: type,
@@ -762,6 +772,16 @@ export default {
}
},
async fetchEvents({ start, end }) {
console.log("fetchEvents ", { start: start, end: end });
if (start) {
console.log("Saving last dates");
this.lastStart = start;
this.lastEnd = end;
} else {
console.log("rehydrating from last dates");
start = this.lastStart;
end = this.lastEnd;
}
/*
{ items = r, users = Users }