fix(user-list): fix user list section labels

Fixes #4805 and #4806
This commit is contained in:
Jonathan Rainville 2022-02-18 11:34:55 -05:00 committed by Iuri Matias
parent 12d2652469
commit c2378e24aa
1 changed files with 8 additions and 1 deletions

View File

@ -75,7 +75,14 @@ Item {
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
font.pixelSize: Style.current.additionalTextSize font.pixelSize: Style.current.additionalTextSize
color: Theme.palette.baseColor1 color: Theme.palette.baseColor1
text: model.onlineStatus === Constants.userStatus.online? qsTr("Online") : qsTr("Offline") text: {
switch(parseInt(section)) {
case Constants.userStatus.offline: return qsTr("Offline")
case Constants.userStatus.online: return qsTr("Online")
case Constants.userStatus.doNotDisturb: return qsTr("Do not disturb")
case Constants.userStatus.idle: return qsTr("Idle")
}
}
} }
} }
} }