parent
4efb8ddfec
commit
d3c3e2e31b
|
@ -126,15 +126,16 @@ update path navKey msg model =
|
||||||
)
|
)
|
||||||
|
|
||||||
ShowDetails selected ->
|
ShowDetails selected ->
|
||||||
( { model
|
( model
|
||||||
| showDetailsFor =
|
, createUrl path
|
||||||
if model.showDetailsFor == Just selected then
|
model.query
|
||||||
Nothing
|
(if model.showDetailsFor == Just selected then
|
||||||
|
Nothing
|
||||||
|
|
||||||
else
|
else
|
||||||
Just selected
|
Just selected
|
||||||
}
|
)
|
||||||
, Cmd.none
|
|> Browser.Navigation.pushUrl navKey
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue