Skip to content

Commit

Permalink
fix: restore favicon on dashboards page (#804)
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 authored Jun 7, 2024
1 parent c4f14be commit 1020742
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/elm/Pages/Dashboards/Dashboard_.elm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
]
)


Expand Down

0 comments on commit 1020742

Please sign in to comment.