summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-02-02 17:24:08 +0530
committerJedi18 <targetakhil@gmail.com>2021-02-02 17:24:08 +0530
commitcd3f719e43e06749a09a8e9eff20c4f2a0615742 (patch)
treefd1dfa75ad43cc51f691f4f3f6a84565898b028d /resources
parentadd error message and update avatars on avatar change in timeline and user pr... (diff)
downloadnheko-cd3f719e43e06749a09a8e9eff20c4f2a0615742.tar.xz
add loading indicator
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/UserProfile.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/qml/UserProfile.qml b/resources/qml/UserProfile.qml

index 349fb89f..65c58382 100644 --- a/resources/qml/UserProfile.qml +++ b/resources/qml/UserProfile.qml
@@ -34,6 +34,12 @@ ApplicationWindow { onClicked: profile.isSelf ? profile.changeAvatar() : TimelineManager.openImageOverlay(TimelineManager.timeline.avatarUrl(userid), TimelineManager.timeline.data.id) } + BusyIndicator { + Layout.alignment: Qt.AlignHCenter + running: profile.isLoading + visible: profile.isLoading + } + Text { id: errorText text: "Error Text" @@ -60,6 +66,7 @@ ApplicationWindow { Connections{ target: profile onDisplayError: { + errorText.text = errorMessage errorText.opacity = 1 hideErrorAnimation.restart() }