Reset state of copy share link button after 3 seconds

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-05-10 11:25:18 +08:00
parent c345b22bf2
commit 7db143469a

View File

@ -860,6 +860,7 @@ Page {
clipboardHelper.clear();
shareLinkCopied = true;
shareLinkCopyTimer.start();
}
property bool shareLinkCopied: false
@ -883,6 +884,12 @@ Page {
id: clipboardHelper
visible: false
}
Timer {
id: shareLinkCopyTimer
interval: 3000
onTriggered: copyShareLinkButton.shareLinkCopied = false
}
}
}
}