From de47351fe23f6ee00e583870e1fbcd78ad206699 Mon Sep 17 00:00:00 2001 From: protonix Date: Mon, 17 Jan 2022 22:49:56 +0300 Subject: [PATCH] Update CalendarEvent.js --- component/calendar/mixins/template/CalendarEvent.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/component/calendar/mixins/template/CalendarEvent.js b/component/calendar/mixins/template/CalendarEvent.js index e32709a..08daaec 100644 --- a/component/calendar/mixins/template/CalendarEvent.js +++ b/component/calendar/mixins/template/CalendarEvent.js @@ -21,9 +21,13 @@ export default { }, methods: { getEventStyle: function () { + //console.dir( this.eventObject ); return { // 'background-color': this.backgroundColor, // 'color': this.textColor + + // staff color + 'background-color': this.eventObject.staff_color, } }, getEventClass: function () { @@ -98,6 +102,7 @@ export default { } }, mounted () { - debug('Component mounted') + debug('Component mounted'); + this.getEventStyle(); } }