This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
no-label
|
no-label
|
||||||
select-only
|
select-only
|
||||||
v-model="tags"
|
v-model="tags"
|
||||||
|
@input="refresh"
|
||||||
></gz-tag-picker>
|
></gz-tag-picker>
|
||||||
</template>
|
</template>
|
||||||
<v-btn
|
<v-btn
|
||||||
@@ -403,10 +404,19 @@ export default {
|
|||||||
formUserOptions: {},
|
formUserOptions: {},
|
||||||
tempFirstTime: null,
|
tempFirstTime: null,
|
||||||
lastMouseDownMS: null,
|
lastMouseDownMS: null,
|
||||||
tags: []
|
tags: [],
|
||||||
|
lastStart: null,
|
||||||
|
lastEnd: null
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
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) {
|
openObject: function(type, id) {
|
||||||
window.$gz.eventBus.$emit("openobject", {
|
window.$gz.eventBus.$emit("openobject", {
|
||||||
type: type,
|
type: type,
|
||||||
@@ -762,6 +772,16 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async fetchEvents({ start, end }) {
|
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 }
|
{ items = r, users = Users }
|
||||||
|
|||||||
Reference in New Issue
Block a user