status-desktop/ui/app/AppLayouts/Wallet/popups/AddNewAccountMenu.qml
Alexandra Betouni 336f90a60f feat(desktop/wallet) Removed dynamic scoping from wallet
Removed all dynamic scoping parts in wallet section plus

- Renamed Config to Global and added more functions there
- Moved changeAppSectionBySectionType function to Global
  and updated all places where is used to call it from
  Global instead
- Moved openLink function to Global and updated all places
  where is used to call it from Global instead
- Moved errorSound to Global, introduced playErrorSound
  function  and updated all places where is used to call
  this function from Global instead

Closes #4245
2022-02-01 11:38:27 +01:00

61 lines
1.5 KiB
QML

import QtQuick 2.13
import QtQuick.Controls 2.13
import shared 1.0
import shared.popups 1.0
import utils 1.0
// TODO: replace with StatusPopupMenu
PopupMenu {
id: newAccountMenu
width: 260
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
signal generateNewAccountTriggered();
signal addWatchAccountTriggered();
signal enterSeedPhraseTriggered();
signal enterPrivateKeyTriggered();
Action {
//% "Generate an account"
text: qsTrId("generate-a-new-account")
icon.source: Style.svg("generate_account")
icon.width: 19
icon.height: 19
onTriggered: {
newAccountMenu.generateNewAccountTriggered();
}
}
Action {
//% "Add a watch-only address"
text: qsTrId("add-a-watch-account")
icon.source: Style.svg("eye")
icon.width: 19
icon.height: 19
onTriggered: {
newAccountMenu.addWatchAccountTriggered();
}
}
Action {
//% "Enter a seed phrase"
text: qsTrId("enter-a-seed-phrase")
icon.source: Style.svg("enter_seed_phrase")
icon.width: 19
icon.height: 19
onTriggered: {
newAccountMenu.enterSeedPhraseTriggered();
}
}
Action {
//% "Enter a private key"
text: qsTrId("enter-a-private-key")
icon.source: Style.svg("enter_private_key")
icon.width: 19
icon.height: 19
onTriggered: {
newAccountMenu.enterPrivateKeyTriggered();
}
}
}