fix(ProfileDialog): provide visual feedback when copying to clipboard

- use `StatusSuccessAction` which provides the desired feedback

Fixes #20838
This commit is contained in:
Lukáš Tinkl
2026-07-03 16:40:15 +02:00
committed by Lukáš Tinkl
parent 20c74206b7
commit df1dfc4479
7 changed files with 22 additions and 3 deletions
+1
View File
@@ -211,3 +211,4 @@ CExPynn1gWf9bx498P7/nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2I
}
// category: Popups
// status: good
@@ -14,7 +14,7 @@ import StatusQ.Popups
Success state is showed by changing action type to \c{Success}.
\qml
StatusSuccessAction.qml {
StatusSuccessAction {
text: qsTr("Copy details")
successText: qsTr("Details copied")
}
@@ -48,7 +48,7 @@ StatusMenuItem {
property string successIconName: "tiny/checkmark"
/*!
\qmlproperty bool StatusSuccessAction::autoDismissMenu
This property enable menu closing on click.
This property enable menu closing on click after the \p timeout
*/
property bool autoDismissMenu: false
/*!
+4
View File
@@ -13255,6 +13255,10 @@ to load</source>
<source>Copy link to profile</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Copied to clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Remove trusted mark</source>
<translation type="unfinished"></translation>
+4
View File
@@ -13332,6 +13332,10 @@ selhalo</translation>
<source>Copy link to profile</source>
<translation>Kopírovat odkaz na profil</translation>
</message>
<message>
<source>Copied to clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Remove trusted mark</source>
<translation>Odstranit značku důvěry</translation>
+4
View File
@@ -13270,6 +13270,10 @@ al cargar</translation>
<source>Copy link to profile</source>
<translation>Copiar enlace al perfil</translation>
</message>
<message>
<source>Copied to clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Remove trusted mark</source>
<translation>Eliminar marca de confianza</translation>
+4
View File
@@ -13209,6 +13209,10 @@ to load</source>
<source>Copy link to profile</source>
<translation> </translation>
</message>
<message>
<source>Copied to clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Remove trusted mark</source>
<translation> </translation>
@@ -313,8 +313,10 @@ Pane {
enabled: !d.isCurrentUser
onTriggered: Global.shareProfileDialogRequested(root.publicKey)
}
StatusAction {
StatusSuccessAction {
text: qsTr("Copy link to profile")
successText: qsTr("Copied to clipboard")
autoDismissMenu: true
icon.name: "copy"
onTriggered: ClipboardUtils.setText(d.linkToProfile)
}