From 1020742a3e8f385718db7288a71b40522e5eb15e Mon Sep 17 00:00:00 2001 From: dave vader <48764154+plyr4@users.noreply.github.com> Date: Fri, 7 Jun 2024 09:02:26 -0500 Subject: [PATCH] fix: restore favicon on dashboards page (#804) --- src/elm/Pages/Dashboards/Dashboard_.elm | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/elm/Pages/Dashboards/Dashboard_.elm b/src/elm/Pages/Dashboards/Dashboard_.elm index 1f37abfdf..78eb11b69 100644 --- a/src/elm/Pages/Dashboards/Dashboard_.elm +++ b/src/elm/Pages/Dashboards/Dashboard_.elm @@ -36,6 +36,7 @@ import Route.Path import Shared import Time import Utils.Errors as Errors +import Utils.Favicons as Favicons import Utils.Helpers as Util import Utils.Interval as Interval import Vela @@ -111,12 +112,15 @@ type alias Model = init : Shared.Model -> Route { dashboard : String } -> () -> ( Model, Effect Msg ) init shared route () = ( { dashboard = RemoteData.Loading } - , Effect.getDashboard - { baseUrl = shared.velaAPIBaseURL - , session = shared.session - , onResponse = GetDashboardResponse - , dashboardId = route.params.dashboard - } + , Effect.batch + [ Effect.updateFavicon { favicon = Favicons.defaultFavicon } + , Effect.getDashboard + { baseUrl = shared.velaAPIBaseURL + , session = shared.session + , onResponse = GetDashboardResponse + , dashboardId = route.params.dashboard + } + ] )