mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-30 21:05:08 +00:00
Hide delete button on new form
This commit is contained in:
parent
8bbde5a181
commit
50a4b5ccb9
@ -28,7 +28,6 @@ import Http
|
||||
import Util.Http
|
||||
import Util.List
|
||||
import Util.Maybe
|
||||
import Util.Update
|
||||
|
||||
|
||||
type alias Model =
|
||||
@ -597,7 +596,10 @@ view extraClasses model =
|
||||
[ text "Cancel"
|
||||
]
|
||||
, button
|
||||
[ class "ui red button"
|
||||
[ classList
|
||||
[ ( "ui red button", True )
|
||||
, ( "hidden invisible", model.settings.id == "" )
|
||||
]
|
||||
, onClick RequestDelete
|
||||
]
|
||||
[ text "Delete"
|
||||
|
Loading…
x
Reference in New Issue
Block a user