Show a different message when participant is active on unshared project
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
29c3b81a0a
commit
4504b36c8f
8 changed files with 97 additions and 54 deletions
|
@ -138,7 +138,7 @@ impl Member {
|
|||
border.overlay = true;
|
||||
|
||||
match leader.location {
|
||||
call::ParticipantLocation::Project {
|
||||
call::ParticipantLocation::SharedProject {
|
||||
project_id: leader_project_id,
|
||||
} => {
|
||||
if Some(leader_project_id) == project.read(cx).remote_id() {
|
||||
|
@ -183,6 +183,21 @@ impl Member {
|
|||
)
|
||||
}
|
||||
}
|
||||
call::ParticipantLocation::UnsharedProject => Some(
|
||||
Label::new(
|
||||
format!(
|
||||
"{} is viewing an unshared Zed project",
|
||||
leader.user.github_login
|
||||
),
|
||||
theme.workspace.external_location_message.text.clone(),
|
||||
)
|
||||
.contained()
|
||||
.with_style(theme.workspace.external_location_message.container)
|
||||
.aligned()
|
||||
.bottom()
|
||||
.right()
|
||||
.boxed(),
|
||||
),
|
||||
call::ParticipantLocation::External => Some(
|
||||
Label::new(
|
||||
format!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue