diff options
author | Yorhel <git@yorhel.nl> | 2020-08-06 13:27:37 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-08-06 13:30:20 +0200 |
commit | 7004c6deffd56b88df93a15ebf75ec593443aa4b (patch) | |
tree | f406e087deee933da51ca8c3a18cc4dabd0efbde /elm | |
parent | 14fa9431498e7102ba772549570851839df93f4e (diff) |
Discussions: Don't show deletion button when creating a new thread
Both pointless and wrong.
Diffstat (limited to 'elm')
-rw-r--r-- | elm/Discussions/Edit.elm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/Discussions/Edit.elm b/elm/Discussions/Edit.elm index c825506e..9a98733b 100644 --- a/elm/Discussions/Edit.elm +++ b/elm/Discussions/Edit.elm @@ -240,7 +240,7 @@ view model = ] ] ++ (if thread then poll () else []) - ++ (if not model.can_mod then [] else + ++ (if not model.can_mod || model.tid == Nothing then [] else [ tr [ class "newpart" ] [ td [ colspan 2 ] [ text "DANGER ZONE" ] ] , formField "" [ inputCheck "" model.delete Delete |