mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Fix elm-analyse issues
This commit is contained in:
@ -6,7 +6,6 @@ module Page.Home.Data exposing
|
||||
, itemNav
|
||||
)
|
||||
|
||||
import Api.Model.ItemDetail exposing (ItemDetail)
|
||||
import Api.Model.ItemLightList exposing (ItemLightList)
|
||||
import Comp.ItemList
|
||||
import Comp.SearchMenu
|
||||
|
@ -2,7 +2,6 @@ module Page.Home.Update exposing (update)
|
||||
|
||||
import Api
|
||||
import Browser.Navigation as Nav
|
||||
import Comp.ItemDetail
|
||||
import Comp.ItemList
|
||||
import Comp.SearchMenu
|
||||
import Data.Flags exposing (Flags)
|
||||
|
@ -1,6 +1,5 @@
|
||||
module Page.Home.View exposing (view)
|
||||
|
||||
import Comp.ItemDetail
|
||||
import Comp.ItemList
|
||||
import Comp.SearchMenu
|
||||
import Html exposing (..)
|
||||
|
@ -35,5 +35,5 @@ update key flags next msg model =
|
||||
in
|
||||
update key flags next (ItemDetailMsg lmsg) model
|
||||
|
||||
ItemResp (Err err) ->
|
||||
ItemResp (Err _) ->
|
||||
( model, Cmd.none )
|
||||
|
@ -106,7 +106,7 @@ update flags msg model =
|
||||
, cmd
|
||||
)
|
||||
|
||||
SubmitResp (Err err) ->
|
||||
SubmitResp (Err _) ->
|
||||
( model, Cmd.none )
|
||||
|
||||
|
||||
|
@ -94,13 +94,6 @@ uploadAllTracker =
|
||||
"upload-all"
|
||||
|
||||
|
||||
isInitial : Model -> Bool
|
||||
isInitial model =
|
||||
Set.isEmpty model.loading
|
||||
&& Set.isEmpty model.completed
|
||||
&& Set.isEmpty model.errored
|
||||
|
||||
|
||||
isDone : Model -> Bool
|
||||
isDone model =
|
||||
List.map makeFileId model.files
|
||||
|
@ -48,7 +48,7 @@ view mid model =
|
||||
|
||||
|
||||
renderErrorMsg : Model -> Html Msg
|
||||
renderErrorMsg model =
|
||||
renderErrorMsg _ =
|
||||
div [ class "row" ]
|
||||
[ div [ class "sixteen wide column" ]
|
||||
[ div [ class "ui large error message" ]
|
||||
@ -63,7 +63,7 @@ renderErrorMsg model =
|
||||
|
||||
|
||||
renderSuccessMsg : Bool -> Model -> Html Msg
|
||||
renderSuccessMsg public model =
|
||||
renderSuccessMsg public _ =
|
||||
div [ class "row" ]
|
||||
[ div [ class "sixteen wide column" ]
|
||||
[ div [ class "ui large success message" ]
|
||||
|
Reference in New Issue
Block a user