summary refs log tree commit diff
path: root/resources/qml/UserProfile.qml
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-02-02 13:30:47 +0530
committerJedi18 <targetakhil@gmail.com>2021-02-02 13:30:47 +0530
commitd535cc5e759757fc71751df7d89131cdf2cd71d2 (patch)
treebeb30cb76bc98e699bbd9349ca5e738035cc8fff /resources/qml/UserProfile.qml
parentupdate room and global avatar through user profile (diff)
downloadnheko-d535cc5e759757fc71751df7d89131cdf2cd71d2.tar.xz
add error message and update avatars on avatar change in timeline and user profile dialog
Diffstat (limited to 'resources/qml/UserProfile.qml')
-rw-r--r--resources/qml/UserProfile.qml31
1 files changed, 31 insertions, 0 deletions
diff --git a/resources/qml/UserProfile.qml b/resources/qml/UserProfile.qml

index cff69a90..349fb89f 100644 --- a/resources/qml/UserProfile.qml +++ b/resources/qml/UserProfile.qml
@@ -34,6 +34,37 @@ ApplicationWindow { onClicked: profile.isSelf ? profile.changeAvatar() : TimelineManager.openImageOverlay(TimelineManager.timeline.avatarUrl(userid), TimelineManager.timeline.data.id) } + Text { + id: errorText + text: "Error Text" + color: "red" + visible: opacity > 0 + opacity: 0 + Layout.alignment: Qt.AlignHCenter + } + + SequentialAnimation { + id: hideErrorAnimation + running: false + PauseAnimation { + duration: 4000 + } + NumberAnimation { + target: errorText + property: 'opacity' + to: 0 + duration: 1000 + } + } + + Connections{ + target: profile + onDisplayError: { + errorText.opacity = 1 + hideErrorAnimation.restart() + } + } + TextInput { id: displayUsername