Fix share manage for new shares

This commit is contained in:
eikek 2021-10-25 15:14:47 +02:00
parent a071002397
commit c21d4c4508

View File

@ -382,7 +382,7 @@ viewForm texts settings flags model =
, title = "Submit this form" , title = "Submit this form"
, icon = "fa fa-save" , icon = "fa fa-save"
, label = texts.basics.submit , label = texts.basics.submit
, disabled = not isOwner , disabled = not isOwner && not newShare
, attrs = [ href "#" ] , attrs = [ href "#" ]
} }
, MB.SecondaryButton , MB.SecondaryButton
@ -427,12 +427,12 @@ viewForm texts settings flags model =
text m text m
] ]
, div , div
[ classList [ ( "hidden", isOwner ) ] [ classList [ ( "hidden", isOwner || newShare ) ]
, class S.infoMessage , class S.infoMessage
] ]
[ text texts.notOwnerInfo [ text texts.notOwnerInfo
] ]
, div [ classList [ ( "hidden", not isOwner ) ] ] , div [ classList [ ( "hidden", not isOwner && not newShare ) ] ]
[ Html.map FormMsg (Comp.ShareForm.view texts.shareForm model.formModel) [ Html.map FormMsg (Comp.ShareForm.view texts.shareForm model.formModel)
] ]
, B.loadingDimmer , B.loadingDimmer