Skip to content

Commit

Permalink
fix(gitlab): user and group link
Browse files Browse the repository at this point in the history
closes #115
  • Loading branch information
pd4d10 committed Oct 11, 2020
1 parent 1d1804f commit 02e8d66
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/screens/gl_groups.dart
Expand Up @@ -24,7 +24,7 @@ class GlGroupsScreenn extends StatelessWidget {
);
},
itemBuilder: (v) {
return UserItem.gitlab(
return UserItem.gitlabGroup(
avatarUrl: v.avatarUrl,
login: v.path,
name: v.name,
Expand Down
8 changes: 8 additions & 0 deletions lib/widgets/user_item.dart
Expand Up @@ -32,6 +32,14 @@ class UserItem extends StatelessWidget {
@required this.avatarUrl,
@required this.bio,
@required int id,
}) : url = '/gitlab/user/$id';

UserItem.gitlabGroup({
@required this.login,
@required this.name,
@required this.avatarUrl,
@required this.bio,
@required int id,
}) : url = '/gitlab/group/$id';

UserItem.gitea({
Expand Down

0 comments on commit 02e8d66

Please sign in to comment.