Skip to content

Commit

Permalink
Basic implementation for maikebing#53
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Renner committed May 2, 2019
1 parent 915f4d2 commit 5b9dd46
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/GitLab.VisualStudio.Shared/Models/Project.cs
Expand Up @@ -24,8 +24,8 @@ public class Project
WikiEnabled = p.WikiEnabled,
Id = p.Id,
WebUrl = p.WebUrl,
Description = p.Description

Description = p.Description,
Namespace = p.Namespace.FullPath
};
}
else
Expand Down Expand Up @@ -74,6 +74,7 @@ public Octicon Icon
}
}

public string Description { get; set; }
}
public string Description { get; set; }
public string Namespace { get; set; }
}
}
7 changes: 7 additions & 0 deletions src/GitLab.VisualStudio.UI/ViewModels/ProjectViewModel.cs
Expand Up @@ -64,6 +64,13 @@ public ProjectViewModel(Project repository)
Name = repository.Owner.Name,
AvatarUrl = repository.Owner.AvatarUrl
};
} else
{
Owner = new Owner
{
Name = repository.Namespace,
AvatarUrl = ""
};
}

Icon = repository.Icon;
Expand Down

0 comments on commit 5b9dd46

Please sign in to comment.