path: root/elm
diff options
authorYorhel <>2020-07-12 09:41:08 +0200
committerYorhel <>2020-07-12 09:41:10 +0200
commit3dcb546104eae865dfc0bff186969143a31ad2a2 (patch)
tree31c6c1043e4de1a5d0a23d60bff9a4f9be517e16 /elm
parent339839746344245f8f6bf20eb0403d52283474a1 (diff)
VN::Edit: Allow screenshot editing if there are screens but no releases
To allow deletion of screenshots after all releases have been removed. The cast edit function already has a similar check.
Diffstat (limited to 'elm')
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/VNEdit.elm b/elm/VNEdit.elm
index 94020dfb..4e442815 100644
--- a/elm/VNEdit.elm
+++ b/elm/VNEdit.elm
@@ -547,7 +547,7 @@ view model =
if == Nothing
then text <| "Screenshots can be uploaded to this visual novel once it has a release entry associated with it. "
++ "To do so, first create this entry without screenshots, then create the appropriate release entries, and finally come back to this form by editing the visual novel."
- else if List.isEmpty model.releases
+ else if List.isEmpty model.screenshots && List.isEmpty model.releases
then p []
[ text "This visual novel does not have any releases associated with it (yet). Please "
, a [ href <| "/v" ++ Maybe.withDefault "" ( String.fromInt ++ "/add" ] [ text "add the appropriate release entries" ]