From 51dfc921eaaef08f590c0f7bfa415c207b438195 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 19 Apr 2017 11:57:39 +0200 Subject: [PATCH] Set default state to supergood - issue #645. --- app/assets/javascripts/app/controllers/_dashboard/stats.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/_dashboard/stats.coffee b/app/assets/javascripts/app/controllers/_dashboard/stats.coffee index 3a797a52b..3c138bc06 100644 --- a/app/assets/javascripts/app/controllers/_dashboard/stats.coffee +++ b/app/assets/javascripts/app/controllers/_dashboard/stats.coffee @@ -16,6 +16,7 @@ class App.DashboardStats extends App.Controller data.StatsTicketWaitingTime = handling_time: 0 average: 0 + state: 'supergood' average_per_agent: 0 if !data.StatsTicketEscalation data.StatsTicketEscalation = @@ -61,7 +62,7 @@ class App.DashboardStats extends App.Controller @html App.view('dashboard/stats')(data) if data.StatsTicketWaitingTime - @renderWidgetClockFace data.StatsTicketWaitingTime.handling_time, data.StatsTicketWaitingTime.state, data.StatsTicketWaitingTime.percent + @renderWidgetClockFace(data.StatsTicketWaitingTime.handling_time, data.StatsTicketWaitingTime.state, data.StatsTicketWaitingTime.percent) renderWidgetClockFace: (time, state, percent) => canvas = @el.find 'canvas'