From 50a4b5ccb929dabbdfd259e3dfef9bf02b71a782 Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Mon, 25 May 2020 17:03:31 +0200 Subject: [PATCH] Hide delete button on new form --- modules/webapp/src/main/elm/Comp/ScanMailboxForm.elm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/webapp/src/main/elm/Comp/ScanMailboxForm.elm b/modules/webapp/src/main/elm/Comp/ScanMailboxForm.elm index 4dff61a0..90e54348 100644 --- a/modules/webapp/src/main/elm/Comp/ScanMailboxForm.elm +++ b/modules/webapp/src/main/elm/Comp/ScanMailboxForm.elm @@ -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"