This commit is contained in:
@@ -67,7 +67,9 @@
|
|||||||
@change="fetchEvents"
|
@change="fetchEvents"
|
||||||
>
|
>
|
||||||
<template v-slot:event="{ event, eventSummary }">
|
<template v-slot:event="{ event, eventSummary }">
|
||||||
<v-icon small :color="event.textColor" class="mr-1">$ayiTools</v-icon>
|
<v-icon small :color="event.textColor" class="mr-1">{{
|
||||||
|
iconForEvent(event.type)
|
||||||
|
}}</v-icon>
|
||||||
<span :class="event.textColor + '--text'" v-html="eventSummary()" />
|
<span :class="event.textColor + '--text'" v-html="eventSummary()" />
|
||||||
</template>
|
</template>
|
||||||
</v-calendar>
|
</v-calendar>
|
||||||
@@ -81,20 +83,19 @@
|
|||||||
<v-card color="grey lighten-4" min-width="350px" flat>
|
<v-card color="grey lighten-4" min-width="350px" flat>
|
||||||
<v-toolbar>
|
<v-toolbar>
|
||||||
<v-btn icon @click="openScheduledItem()">
|
<v-btn icon @click="openScheduledItem()">
|
||||||
<v-icon>$ayiEdit</v-icon>
|
<v-icon>{{ iconForSelectedEvent() }}</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-toolbar-title>{{ selectedEvent.name }}</v-toolbar-title>
|
<v-toolbar-title>{{ selectedEvent.name }}</v-toolbar-title>
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<v-btn icon>
|
<!-- <v-btn icon>
|
||||||
<v-icon>$ayiBell</v-icon>
|
<v-icon>$ayiBell</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn icon>
|
<v-btn icon>
|
||||||
<v-icon>$ayiBoxes</v-icon>
|
<v-icon>$ayiBoxes</v-icon>
|
||||||
</v-btn>
|
</v-btn> -->
|
||||||
</v-toolbar>
|
</v-toolbar>
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
{{ selectedEvent }}
|
{{ selectedEvent }}
|
||||||
<!-- <span v-html="selectedEvent.details"></span> -->
|
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
<v-btn text color="secondary" @click="selectedOpen = false">
|
<v-btn text color="secondary" @click="selectedOpen = false">
|
||||||
@@ -159,8 +160,7 @@ SETTINGS:
|
|||||||
|
|
||||||
TODO NEXT:
|
TODO NEXT:
|
||||||
|
|
||||||
correct date/time adjusted (doesn't seem to be)
|
Summary info to display for woitem when open dialog
|
||||||
make popup clickthrough to open wo just so make life easier for me testing and adjusting
|
|
||||||
settings / saving as form settings
|
settings / saving as form settings
|
||||||
use translations where possible
|
use translations where possible
|
||||||
|
|
||||||
@@ -236,6 +236,12 @@ export default {
|
|||||||
next() {
|
next() {
|
||||||
this.$refs.calendar.next();
|
this.$refs.calendar.next();
|
||||||
},
|
},
|
||||||
|
iconForSelectedEvent() {
|
||||||
|
return window.$gz.util.iconForType(this.selectedEvent.type);
|
||||||
|
},
|
||||||
|
iconForEvent(type) {
|
||||||
|
return window.$gz.util.iconForType(type);
|
||||||
|
},
|
||||||
openScheduledItem() {
|
openScheduledItem() {
|
||||||
window.$gz.eventBus.$emit("openobject", {
|
window.$gz.eventBus.$emit("openobject", {
|
||||||
type: this.selectedEvent.type,
|
type: this.selectedEvent.type,
|
||||||
|
|||||||
Reference in New Issue
Block a user