mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-30 21:05:08 +00:00
Hide delete button when creating new folder
This commit is contained in:
parent
2ab0b5e222
commit
5bde78083a
@ -342,7 +342,7 @@ view flags model =
|
||||
|
||||
|
||||
viewButtons : Model -> List (Html Msg)
|
||||
viewButtons _ =
|
||||
viewButtons model =
|
||||
[ div [ class "ui divider" ] []
|
||||
, button
|
||||
[ class "ui button"
|
||||
@ -351,7 +351,10 @@ viewButtons _ =
|
||||
[ text "Back"
|
||||
]
|
||||
, button
|
||||
[ class "ui red button"
|
||||
[ classList
|
||||
[ ( "ui red button", True )
|
||||
, ( "invisible hidden", model.folder.id == "" )
|
||||
]
|
||||
, onClick RequestDelete
|
||||
]
|
||||
[ text "Delete"
|
||||
|
Loading…
x
Reference in New Issue
Block a user