Skip to content

Commit

Permalink
Fix parsing output and use reputation_name
Browse files Browse the repository at this point in the history
  • Loading branch information
walokra committed Dec 18, 2020
1 parent 2c5c7c2 commit e3fd014
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions qml/pages/AccountPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Page {
property string url : "anonymous";
property string bio : "";
property string created : "";
property int reputation : 0;
property string reputation : "";
//property var pro_expiration : false;

onLoad: {
Expand Down Expand Up @@ -72,7 +72,8 @@ Page {
spacing: Theme.paddingMedium;

Label {
text: reputation + qsTr(" reputation");
// text: reputation + qsTr(" reputation");
text: reputation;
color: constant.colorHighlight;
font.pixelSize: Screen.sizeCategory >= Screen.Large
? constant.fontSizeSmall : constant.fontSizeXSmall
Expand Down Expand Up @@ -290,9 +291,9 @@ Page {
//var pro_expr = (pro_expiration === false) ? pro_expiration : Utils.formatEpochDatetime(output.pro_expiration);
account_id = output.id;
url = output.url;
bio = output.bio;
bio = (output.bio) ? output.bio : "";
created = date;
reputation = output.reputation;
reputation = output.reputation_name;
//pro_expiration = pro_expr;
}
}
Expand Down

0 comments on commit e3fd014

Please sign in to comment.