Skip to content

Commit ac9bc26

Browse files
committed
Improve public/private and collab permissions
1 parent cd2e6bc commit ac9bc26

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/UnisonShare/Page/ProjectSettingsPage.elm

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,7 @@ viewPageContent project model =
451451

452452
else
453453
( overlay_
454-
, div [ class "collaborators_empty-state_text" ]
455-
[ Icon.view Icon.bulb, text "Public organizations only support public projects" ]
454+
, StatusBanner.info "Changing visibility is not supported for public organizations."
456455
)
457456

458457
Failure _ ->
@@ -527,10 +526,17 @@ viewPageContent project model =
527526
]
528527
]
529528
]
529+
530+
collaborators =
531+
if Project.isPublic project || project.isPremiumProject then
532+
viewCollaborators model
533+
534+
else
535+
UI.nothing
530536
in
531537
PageContent.oneColumn
532538
[ div [ class "settings-content", class stateClass ]
533-
(viewCollaborators model :: formAndActions)
539+
(collaborators :: formAndActions)
534540
]
535541
|> pageTitle_
536542

0 commit comments

Comments
 (0)