Hide delete button on new form

This commit is contained in:
Eike Kettner 2020-05-25 17:03:31 +02:00
parent 8bbde5a181
commit 50a4b5ccb9

View File

@ -28,7 +28,6 @@ import Http
import Util.Http import Util.Http
import Util.List import Util.List
import Util.Maybe import Util.Maybe
import Util.Update
type alias Model = type alias Model =
@ -597,7 +596,10 @@ view extraClasses model =
[ text "Cancel" [ text "Cancel"
] ]
, button , button
[ class "ui red button" [ classList
[ ( "ui red button", True )
, ( "hidden invisible", model.settings.id == "" )
]
, onClick RequestDelete , onClick RequestDelete
] ]
[ text "Delete" [ text "Delete"