Skip to content

Commit 5b9dd46

Browse files
author
Dominic Renner
committedMay 2, 2019
Basic implementation for maikebing#53
1 parent 915f4d2 commit 5b9dd46

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed
 

‎src/GitLab.VisualStudio.Shared/Models/Project.cs

+5-4
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public static implicit operator Project(NGitLab.Models.Project p)
2424
WikiEnabled = p.WikiEnabled,
2525
Id = p.Id,
2626
WebUrl = p.WebUrl,
27-
Description = p.Description
28-
27+
Description = p.Description,
28+
Namespace = p.Namespace.FullPath
2929
};
3030
}
3131
else
@@ -74,6 +74,7 @@ public Octicon Icon
7474
}
7575
}
7676

77-
public string Description { get; set; }
78-
}
77+
public string Description { get; set; }
78+
public string Namespace { get; set; }
79+
}
7980
}

‎src/GitLab.VisualStudio.UI/ViewModels/ProjectViewModel.cs

+7
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ public ProjectViewModel(Project repository)
6464
Name = repository.Owner.Name,
6565
AvatarUrl = repository.Owner.AvatarUrl
6666
};
67+
} else
68+
{
69+
Owner = new Owner
70+
{
71+
Name = repository.Namespace,
72+
AvatarUrl = ""
73+
};
6774
}
6875

6976
Icon = repository.Icon;

0 commit comments

Comments
 (0)