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