From 305457091e4416c46d0a8a07572139ef6c90a6c3 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Fri, 21 Oct 2016 08:50:17 -0700 Subject: [PATCH] disable user functions when user is me --- assets/ProfilePage.qml | 3 +++ buildnum | 2 +- translations/Goober.ts | 8 ++++---- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/assets/ProfilePage.qml b/assets/ProfilePage.qml index 0416dc2..f42b369 100644 --- a/assets/ProfilePage.qml +++ b/assets/ProfilePage.qml @@ -158,6 +158,7 @@ Page { } } imageSource: (user.you_follow) ? "asset:///icons/minus-circle.png" : "asset:///icons/ic_add.png" + enabled: (_app.setting("username") === user.username) ? false : true }, ActionItem { title: (user.you_muted) ? qsTr("Unmute") : qsTr("Mute") @@ -170,6 +171,7 @@ Page { } } imageSource: (user.you_muted) ? "asset:///icons/bell.png" : "asset:///icons/bell-slash.png" + enabled: (_app.setting("username") === user.username) ? false : true }, ActionItem { title: (user.you_blocked) ? qsTr("Unblock") : qsTr("Block") @@ -182,6 +184,7 @@ Page { } } imageSource: "asset:///icons/ic_cancel.png" + enabled: (_app.setting("username") === user.username) ? false : true } ] } diff --git a/buildnum b/buildnum index afbe847..b854a29 100644 --- a/buildnum +++ b/buildnum @@ -1 +1 @@ -126 \ No newline at end of file +128 \ No newline at end of file diff --git a/translations/Goober.ts b/translations/Goober.ts index 8b5a54b..a1dfb66 100644 --- a/translations/Goober.ts +++ b/translations/Goober.ts @@ -98,22 +98,22 @@ - + Unmute - + Mute - + Unblock - + Block