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