mirror of
https://github.com/status-im/status-app.git
synced 2026-08-27 07:01:14 +00:00
fix(ProfileDialog): provide visual feedback when copying to clipboard
- use `StatusSuccessAction` which provides the desired feedback Fixes #20838
This commit is contained in:
@@ -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
|
||||
/*!
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user