mirror of
https://github.com/logos-blockchain/logos-execution-zone-wallet-ui.git
synced 2026-07-29 22:23:30 +00:00
fix: unpopulated account list issue, copy address button not working.
This commit is contained in:
parent
ab7f0c617a
commit
4f6b9e8838
5628
flake.lock
generated
5628
flake.lock
generated
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@
|
||||
inputs = {
|
||||
logos-module-builder.url = "github:logos-co/logos-module-builder";
|
||||
nix-bundle-lgx.url = "github:logos-co/nix-bundle-lgx";
|
||||
logos-execution-zone-module.url = "github:logos-blockchain/logos-execution-zone-module";
|
||||
logos_execution_zone.url = "github:logos-blockchain/logos-execution-zone-module";
|
||||
};
|
||||
|
||||
outputs = inputs@{ logos-module-builder, ... }:
|
||||
|
||||
@ -99,6 +99,12 @@ Rectangle {
|
||||
|
||||
color: Theme.palette.background
|
||||
|
||||
// Used as a clipboard helper — TextEdit.copy() works in the GUI process.
|
||||
TextEdit {
|
||||
id: clipHelper
|
||||
visible: false
|
||||
}
|
||||
|
||||
StackView {
|
||||
id: stackView
|
||||
anchors.fill: parent
|
||||
@ -175,7 +181,9 @@ Rectangle {
|
||||
})
|
||||
}
|
||||
onCopyRequested: (copyText) => {
|
||||
if (backend) backend.copyToClipboard(copyText)
|
||||
clipHelper.text = copyText
|
||||
clipHelper.selectAll()
|
||||
clipHelper.copy()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@ ItemDelegate {
|
||||
spacing: Theme.spacing.small
|
||||
|
||||
LogosText {
|
||||
text: model.name
|
||||
text: model.name ?? ""
|
||||
font.pixelSize: Theme.typography.secondaryText
|
||||
font.bold: true
|
||||
}
|
||||
@ -68,7 +68,7 @@ ItemDelegate {
|
||||
id: addressLabel
|
||||
Layout.fillWidth: true
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
text: model.address
|
||||
text: model.address ?? ""
|
||||
font.pixelSize: Theme.typography.secondaryText
|
||||
color: Theme.palette.textMuted
|
||||
elide: Text.ElideMiddle
|
||||
|
||||
@ -75,10 +75,10 @@ Rectangle {
|
||||
id: listView
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
visible: (accountModel && accountModel.count > 0) || !accountModel
|
||||
visible: count > 0 || !root.accountModel
|
||||
clip: true
|
||||
spacing: Theme.spacing.small
|
||||
model: accountModel && accountModel.count > 0 ? root.accountModel: null
|
||||
model: root.accountModel
|
||||
|
||||
delegate: AccountDelegate {
|
||||
width: listView.width
|
||||
|
||||
@ -21,7 +21,7 @@ Rectangle {
|
||||
signal transferPrivateOwnedRequested(string fromAccountId, string toAccountId, string amount)
|
||||
signal copyRequested(string copyText)
|
||||
|
||||
readonly property int fromFilterCount: (fromAccountModel && fromAccountModel.count) ? fromAccountModel.count : 0
|
||||
readonly property int fromFilterCount: fromCombo.count
|
||||
|
||||
QtObject {
|
||||
id: d
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user