Skip to content

Commit

Permalink
Make botId and addressByTransport copyable
Browse files Browse the repository at this point in the history
Fixes part of bisq-network#2228.
  • Loading branch information
kciouv committed Jun 12, 2024
1 parent 872adf9 commit 3217c11
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import bisq.common.data.Triple;
import bisq.desktop.ServiceProvider;
import bisq.desktop.common.Layout;
import bisq.desktop.common.utils.ClipboardUtil;
import bisq.desktop.common.view.Navigation;
import bisq.desktop.components.cathash.CatHash;
import bisq.desktop.components.containers.Spacer;
Expand Down Expand Up @@ -363,6 +364,12 @@ protected void onViewAttached() {
}
});

//todo add animation or popup to signal copy
botId.setOnMouseClicked(e ->
ClipboardUtil.copyToClipboard(model.userProfile.getNym()));
addressByTransport.setOnMouseClicked(e ->
ClipboardUtil.copyToClipboard(model.userProfile.getAddressByTransportDisplayString()));

privateMsg.setOnAction(e -> controller.onSendPrivateMessage());
mention.setOnAction(e -> controller.onMentionUser());
ignore.setOnAction(e -> controller.onToggleIgnoreUser());
Expand Down

0 comments on commit 3217c11

Please sign in to comment.