1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-15 09:56:15 +01:00

fix(gitlab): user and group link

closes #115
This commit is contained in:
Rongjian Zhang 2020-10-11 22:18:22 +08:00
parent 1d1804fa86
commit 02e8d66ae2
2 changed files with 9 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class GlGroupsScreenn extends StatelessWidget {
); );
}, },
itemBuilder: (v) { itemBuilder: (v) {
return UserItem.gitlab( return UserItem.gitlabGroup(
avatarUrl: v.avatarUrl, avatarUrl: v.avatarUrl,
login: v.path, login: v.path,
name: v.name, name: v.name,

View File

@ -32,6 +32,14 @@ class UserItem extends StatelessWidget {
@required this.avatarUrl, @required this.avatarUrl,
@required this.bio, @required this.bio,
@required int id, @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'; }) : url = '/gitlab/group/$id';
UserItem.gitea({ UserItem.gitea({