Show mod and admin in user list.

This commit is contained in:
Black Hat
2020-01-01 23:13:19 +08:00
parent 9cb8181e23
commit 3544e5441f
4 changed files with 83 additions and 12 deletions

View File

@@ -235,6 +235,31 @@ Drawer {
text: name
color: MPalette.foreground
textFormat: Text.PlainText
elide: Text.ElideRight
wrapMode: Text.NoWrap
}
MaterialIcon {
Layout.preferredWidth: height
Layout.fillHeight: true
enabled: perm != UserType.Member
icon: {
if (perm == UserType.Admin) {
return "\ue853"
}
if (perm == UserType.Moderator) {
return "\ue8e8"
}
if (perm == UserType.Muted) {
return "\ue92a"
}
return ""
}
color: MPalette.lighter
}
}