mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-05 22:55:58 +00:00
Fix share manage for new shares
This commit is contained in:
parent
a071002397
commit
c21d4c4508
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user