chore(@desktop/wallet): object names added to wallet account related qml components
This commit is contained in:
parent
2fae4cdaf1
commit
06ba89661b
|
@ -117,6 +117,7 @@ Item {
|
|||
spacing: root.spacing
|
||||
model: d.pages
|
||||
delegate: StatusBaseButton {
|
||||
objectName: "Page-%1".arg(itemText)
|
||||
width: d.buttonWidth
|
||||
text: itemText
|
||||
size: StatusBaseButton.Size.Small
|
||||
|
|
|
@ -103,6 +103,7 @@ StatusMenu {
|
|||
model: proxyModel
|
||||
|
||||
Rectangle {
|
||||
objectName: "AddAccountPopup-GeneratedAddress-%1".arg(model.addressDetails.order)
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
height: Constants.addAccountPopup.itemHeight
|
||||
|
@ -215,6 +216,7 @@ StatusMenu {
|
|||
}
|
||||
|
||||
StatusPageIndicator {
|
||||
objectName: "AddAccountPopup-GeneratedAddressesListPageIndicatior"
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: (Constants.addAccountPopup.itemHeight - height) * 0.5
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
|
|
|
@ -33,6 +33,7 @@ GridLayout {
|
|||
}
|
||||
|
||||
StatusLinkText {
|
||||
objectName: "AddAccountPopup-ResetDerivationPath"
|
||||
enabled: root.store.addAccountModule.suggestedDerivationPath !== root.store.addAccountModule.derivationPath
|
||||
font.pixelSize: Constants.addAccountPopup.labelFontSize1
|
||||
text: qsTr("Reset")
|
||||
|
@ -55,6 +56,7 @@ GridLayout {
|
|||
|
||||
DerivationPathInput {
|
||||
id: derivationPathInput
|
||||
objectName: "AddAccountPopup-DerivationPathInput"
|
||||
|
||||
Layout.fillWidth: true
|
||||
|
||||
|
@ -129,6 +131,7 @@ GridLayout {
|
|||
|
||||
StatusListItem {
|
||||
id: generatedAddress
|
||||
objectName: "AddAccountPopup-GeneratedAddress"
|
||||
Layout.preferredWidth: d.oneHalfWidth
|
||||
Layout.preferredHeight: derivationPathInput.height
|
||||
color: "transparent"
|
||||
|
@ -163,6 +166,7 @@ GridLayout {
|
|||
|
||||
AccountAddressSelection {
|
||||
id: accountAddressSelection
|
||||
objectName: "AddAccountPopup-GeneratedAddressesList"
|
||||
width: root.width
|
||||
store: root.store
|
||||
|
||||
|
@ -219,6 +223,7 @@ GridLayout {
|
|||
}
|
||||
|
||||
StatusCheckBox {
|
||||
objectName: "AddAccountPopup-ConfirmAddingNonEthDerivationPath"
|
||||
visible: root.store.derivationPathOutOfTheDefaultStatusDerivationTree
|
||||
Layout.fillWidth: true
|
||||
Layout.columnSpan: 3
|
||||
|
|
|
@ -52,6 +52,7 @@ Column {
|
|||
}
|
||||
|
||||
StatusButton {
|
||||
objectName: "AddAccountPopup-EditDerivationPath"
|
||||
visible: !root.store.addAccountModule.actionAuthenticated
|
||||
text: qsTr("Edit")
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ StatusMenu {
|
|||
model: root.roots.length
|
||||
|
||||
StatusListItem {
|
||||
objectName: "AddAccountPopup-PreDefinedDerivationPath-%1".arg(title)
|
||||
width: parent.width
|
||||
title: root.translation(root.roots[index], true)
|
||||
subTitle: root.translation(root.roots[index], false)
|
||||
|
|
|
@ -23,6 +23,7 @@ StatusSelect {
|
|||
model: root.originModel
|
||||
|
||||
selectedItemComponent: StatusListItem {
|
||||
objectName: "AddAccountPopup-SelectedOrigin"
|
||||
title: Utils.appTranslation(root.selectedOrigin.name)
|
||||
statusListItemTitle.color: Theme.palette.directColor1
|
||||
border.width: 1
|
||||
|
@ -71,6 +72,8 @@ StatusSelect {
|
|||
}
|
||||
menuDelegate: StatusListItem {
|
||||
id: menu
|
||||
objectName: "AddAccountPopup-OriginOption-" +
|
||||
(model.keyPair.pairType === Constants.addAccountPopup.keyPairType.unknown? model.keyPair.keyUid : model.keyPair.name)
|
||||
|
||||
property bool isProfileKeypair: model.keyPair.pairType === Constants.addAccountPopup.keyPairType.profile
|
||||
property bool isOption: model.keyPair.keyUid === Constants.appTranslatableConstants.addAccountLabelOptionAddNewMasterKey ||
|
||||
|
|
|
@ -21,6 +21,7 @@ Column {
|
|||
|
||||
StatusInput {
|
||||
id: addressInput
|
||||
objectName: "AddAccountPopup-WatchOnlyAddress"
|
||||
width: parent.width
|
||||
maximumHeight: Constants.addAccountPopup.itemHeight
|
||||
minimumHeight: Constants.addAccountPopup.itemHeight
|
||||
|
|
|
@ -77,6 +77,7 @@ Item {
|
|||
|
||||
StatusCheckBox {
|
||||
id: havePen
|
||||
objectName: "AddAccountPopup-HavePenAndPaper"
|
||||
Layout.preferredWidth: d.width2
|
||||
Layout.preferredHeight: d.checkboxHeight
|
||||
Layout.topMargin: Style.current.padding
|
||||
|
@ -88,6 +89,7 @@ Item {
|
|||
|
||||
StatusCheckBox {
|
||||
id: writeDown
|
||||
objectName: "AddAccountPopup-SeedPhraseWritten"
|
||||
Layout.preferredWidth: d.width2
|
||||
Layout.preferredHeight: d.checkboxHeight
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
|
@ -98,6 +100,7 @@ Item {
|
|||
|
||||
StatusCheckBox {
|
||||
id: storeIt
|
||||
objectName: "AddAccountPopup-StoringSeedPhraseConfirmed"
|
||||
Layout.preferredWidth: d.width2
|
||||
Layout.preferredHeight: d.checkboxHeight
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
|
|
|
@ -78,6 +78,7 @@ Item {
|
|||
|
||||
StatusCheckBox {
|
||||
id: aknowledge
|
||||
objectName: "AddAccountPopup-SeedBackupAknowledge"
|
||||
Layout.preferredWidth: parent.width
|
||||
Layout.topMargin: 2 * Style.current.xlPadding
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
|
|
|
@ -24,6 +24,7 @@ Item {
|
|||
spacing: Style.current.halfPadding
|
||||
|
||||
StatusInput {
|
||||
objectName: "AddAccountPopup-GeneratedSeedPhraseKeyName"
|
||||
Layout.preferredWidth: parent.width
|
||||
Layout.topMargin: Style.current.padding
|
||||
label: qsTr("Key name")
|
||||
|
|
|
@ -50,6 +50,7 @@ Item {
|
|||
|
||||
StatusPasswordInput {
|
||||
id: privKeyInput
|
||||
objectName: "AddAccountPopup-PrivateKeyInput"
|
||||
Layout.preferredHeight: Constants.addAccountPopup.itemHeight
|
||||
Layout.preferredWidth: parent.width - parent.columnSpacing - showHideButton.width
|
||||
rightPadding: pasteButton.width + pasteButton.anchors.rightMargin + Style.current.halfPadding
|
||||
|
@ -147,6 +148,7 @@ Item {
|
|||
visible: d.addressResolved
|
||||
|
||||
StatusInput {
|
||||
objectName: "AddAccountPopup-PrivateKeyName"
|
||||
width: parent.width
|
||||
label: qsTr("Key name")
|
||||
charLimit: Constants.addAccountPopup.keyPairNameMaxLength
|
||||
|
|
|
@ -67,6 +67,7 @@ Item {
|
|||
visible: root.store.enteredSeedPhraseIsValid
|
||||
|
||||
StatusInput {
|
||||
objectName: "AddAccountPopup-ImportedSeedPhraseKeyName"
|
||||
width: parent.width
|
||||
label: qsTr("Key name")
|
||||
charLimit: Constants.addAccountPopup.keyPairNameMaxLength
|
||||
|
|
|
@ -118,6 +118,7 @@ Item {
|
|||
|
||||
StatusInput {
|
||||
id: word
|
||||
objectName: "AddAccountPopup-EnterSeedPhraseWord"
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: Style.current.xlPadding
|
||||
validationMode: StatusInput.ValidationMode.Always
|
||||
|
|
|
@ -99,6 +99,7 @@ Item {
|
|||
|
||||
StatusInput {
|
||||
id: accountName
|
||||
objectName: "AddAccountPopup-AccountName"
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
placeholderText: qsTr("Enter an account name...")
|
||||
label: qsTr("Name")
|
||||
|
@ -112,6 +113,7 @@ Item {
|
|||
d.openEmojiPopup(true)
|
||||
}
|
||||
input.rightComponent: StatusFlatRoundButton {
|
||||
objectName: "AddAccountPopup-AccountEmoji"
|
||||
width: 30
|
||||
height: 30
|
||||
radius: 30
|
||||
|
@ -148,6 +150,7 @@ Item {
|
|||
|
||||
StatusColorSelectorGrid {
|
||||
id: colorSelection
|
||||
objectName: "AddAccountPopup-AccountColor"
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
model: Constants.preDefinedWalletAccountColors
|
||||
title.color: Theme.palette.directColor1
|
||||
|
|
|
@ -27,6 +27,7 @@ Item {
|
|||
}
|
||||
|
||||
StatusListItem {
|
||||
objectName: "AddAccountPopup-ImportUsingSeedPhrase"
|
||||
title: qsTr("Import using seed phrase")
|
||||
asset {
|
||||
name: "key_pair_seed_phrase"
|
||||
|
@ -47,6 +48,7 @@ Item {
|
|||
}
|
||||
|
||||
StatusListItem {
|
||||
objectName: "AddAccountPopup-ImportPrivateKey"
|
||||
title: qsTr("Import private key")
|
||||
asset {
|
||||
name: "objects"
|
||||
|
@ -67,6 +69,7 @@ Item {
|
|||
}
|
||||
|
||||
StatusListItem {
|
||||
objectName: "AddAccountPopup-GenerateNewMasterKey"
|
||||
title: qsTr("Generate new master key")
|
||||
asset {
|
||||
name: "objects"
|
||||
|
@ -103,6 +106,7 @@ Item {
|
|||
}
|
||||
components: [
|
||||
StatusButton {
|
||||
objectName: "AddAccountPopup-GoToKeycardSettings"
|
||||
text: qsTr("Continue in Keycard settings")
|
||||
onClicked: {
|
||||
Global.changeAppSectionBySectionType(Constants.appSection.profile, Constants.settingsSubsection.keycard)
|
||||
|
|
|
@ -11,6 +11,7 @@ import "../stores"
|
|||
StatusMenu {
|
||||
id: root
|
||||
|
||||
required property string uniqueIdentifier // unique idetifier added as postfix to options' objectName (used for ui tests)
|
||||
property var account
|
||||
|
||||
signal editAccountClicked()
|
||||
|
@ -37,6 +38,7 @@ StatusMenu {
|
|||
|
||||
StatusMenuItem {
|
||||
id: copyAddressAction
|
||||
objectName: "AccountMenu-CopyAddressAction-%1".arg(root.uniqueIdentifier)
|
||||
enabled: !!root.account
|
||||
text: qsTr("Copy address")
|
||||
action: StatusAction {}
|
||||
|
@ -64,6 +66,7 @@ StatusMenu {
|
|||
}
|
||||
|
||||
StatusAction {
|
||||
objectName: "AccountMenu-EditAction-%1".arg(root.uniqueIdentifier)
|
||||
enabled: !!root.account
|
||||
text: qsTr("Edit")
|
||||
icon.name: "pencil-outline"
|
||||
|
@ -73,6 +76,7 @@ StatusMenu {
|
|||
}
|
||||
|
||||
StatusAction {
|
||||
objectName: "AccountMenu-DeleteAction-%1".arg(root.uniqueIdentifier)
|
||||
enabled: !!root.account && root.account.walletType !== ""
|
||||
text: qsTr("Delete")
|
||||
icon.name: "info"
|
||||
|
@ -87,6 +91,7 @@ StatusMenu {
|
|||
}
|
||||
|
||||
StatusAction {
|
||||
objectName: "AccountMenu-AddNewAccountAction-%1".arg(root.uniqueIdentifier)
|
||||
text: qsTr("Add new account")
|
||||
icon.name: "add"
|
||||
onTriggered: {
|
||||
|
@ -95,6 +100,7 @@ StatusMenu {
|
|||
}
|
||||
|
||||
StatusAction {
|
||||
objectName: "AccountMenu-AddWatchOnlyAccountAction-%1".arg(root.uniqueIdentifier)
|
||||
text: qsTr("Add watch-only account")
|
||||
icon.name: "show"
|
||||
onTriggered: {
|
||||
|
|
|
@ -24,6 +24,7 @@ import "../addaccount"
|
|||
|
||||
Rectangle {
|
||||
id: root
|
||||
objectName: "walletLeftTab"
|
||||
|
||||
property var networkConnectionStore
|
||||
property var changeSelectedAccount: function(){}
|
||||
|
@ -55,6 +56,13 @@ Rectangle {
|
|||
Loader {
|
||||
id: walletBckgAccountContextMenu
|
||||
sourceComponent: AccountContextMenu {
|
||||
|
||||
uniqueIdentifier: "wallet-background"
|
||||
|
||||
onClosed: {
|
||||
walletBckgAccountContextMenu.active = false
|
||||
}
|
||||
|
||||
onAddNewAccountClicked: {
|
||||
RootStore.runAddAccountPopup()
|
||||
}
|
||||
|
@ -232,7 +240,8 @@ Rectangle {
|
|||
readonly property Item firstItem: count > 0 ? itemAtIndex(0) : null
|
||||
|
||||
delegate: StatusListItem {
|
||||
objectName: "walletAccountItem"
|
||||
objectName: "walletAccount-" + model.name
|
||||
readonly property bool itemLoaded: !model.assetsLoading // needed for e2e tests
|
||||
width: ListView.view.width - Style.current.padding * 2
|
||||
highlighted: !ListView.view.footerItem.button.highlighted &&
|
||||
RootStore.currentAccount.name === model.name
|
||||
|
@ -281,8 +290,14 @@ Rectangle {
|
|||
Loader {
|
||||
id: accountContextMenu
|
||||
sourceComponent: AccountContextMenu {
|
||||
|
||||
uniqueIdentifier: model.name
|
||||
account: model
|
||||
|
||||
onClosed: {
|
||||
accountContextMenu.active = false
|
||||
}
|
||||
|
||||
onEditAccountClicked: {
|
||||
RootStore.runEditAccountPopup(model.address)
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@ Item {
|
|||
readonly property var wordIndex: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"]
|
||||
readonly property int spacing: 4
|
||||
delegate: StatusSeedPhraseInput {
|
||||
objectName: "SeedPhraseWordAtIndex-" + grid.wordIndex[index]
|
||||
width: (grid.cellWidth - grid.spacing)
|
||||
height: (grid.cellHeight - grid.spacing)
|
||||
textEdit.input.edit.enabled: false
|
||||
|
@ -47,6 +48,7 @@ Item {
|
|||
}
|
||||
|
||||
StatusButton {
|
||||
objectName: "AddAccountPopup-RevealSeedPhrase"
|
||||
anchors.centerIn: parent
|
||||
visible: !root.seedPhraseRevealed
|
||||
type: StatusBaseButton.Type.Primary
|
||||
|
|
|
@ -42,6 +42,7 @@ StatusModal {
|
|||
spacing: Style.current.halfPadding
|
||||
|
||||
StatusBaseText {
|
||||
objectName: "RemoveAccountPopup-Notification"
|
||||
Layout.preferredWidth: parent.width
|
||||
wrapMode: Text.WordWrap
|
||||
textFormat: Text.RichText
|
||||
|
@ -68,6 +69,7 @@ at a later date should you wish to do so:").arg("<b>%1</b>".arg(root.accountName
|
|||
}
|
||||
|
||||
StatusInput {
|
||||
objectName: "RemoveAccountPopup-DerivationPath"
|
||||
Layout.preferredWidth: parent.width
|
||||
visible: !root.simple
|
||||
input.edit.enabled: false
|
||||
|
@ -81,6 +83,7 @@ at a later date should you wish to do so:").arg("<b>%1</b>".arg(root.accountName
|
|||
|
||||
StatusCheckBox {
|
||||
id: derivationPathWritten
|
||||
objectName: "RemoveAccountPopup-HavePenPaper"
|
||||
Layout.preferredWidth: parent.width
|
||||
Layout.preferredHeight: d.checkboxHeight
|
||||
Layout.topMargin: Style.current.padding
|
||||
|
@ -93,6 +96,7 @@ at a later date should you wish to do so:").arg("<b>%1</b>".arg(root.accountName
|
|||
|
||||
rightButtons: [
|
||||
StatusFlatButton {
|
||||
objectName: "RemoveAccountPopup-CancelButton"
|
||||
text: qsTr("Cancel")
|
||||
type: StatusBaseButton.Type.Normal
|
||||
onClicked: {
|
||||
|
@ -100,7 +104,8 @@ at a later date should you wish to do so:").arg("<b>%1</b>".arg(root.accountName
|
|||
}
|
||||
},
|
||||
StatusButton {
|
||||
text: qsTr("Remove %1").arg(root.accountName)
|
||||
objectName: "RemoveAccountPopup-ConfirmButton"
|
||||
text: qsTr("Remove")
|
||||
type: StatusBaseButton.Type.Danger
|
||||
enabled: root.simple || derivationPathWritten.checked
|
||||
focus: true
|
||||
|
|
Loading…
Reference in New Issue