bug(savedaddresses): the send modal should be run clicking on the send button of a saved address item
Fixes #13172
This commit is contained in:
parent
d4944fd662
commit
40ed061402
|
@ -228,6 +228,7 @@ class AddressesView(BaseElement):
|
|||
|
||||
def open_edit_address_popup(self, address_name: str) -> 'EditSavedAddressPopup':
|
||||
address = self._get_saved_address_by_name(address_name)
|
||||
address.hover()
|
||||
address.open_context_menu()
|
||||
self._edit_saved_address_menu_item.wait_until_appears()
|
||||
self._edit_saved_address_menu_item.click()
|
||||
|
@ -236,6 +237,7 @@ class AddressesView(BaseElement):
|
|||
|
||||
def delete_saved_address(self, address_name):
|
||||
address = self._get_saved_address_by_name(address_name)
|
||||
address.hover()
|
||||
address.open_context_menu()
|
||||
self._delete_saved_address_menu_item.wait_until_appears()
|
||||
self._delete_saved_address_menu_item.click()
|
||||
|
|
|
@ -63,10 +63,6 @@ StatusListItem {
|
|||
|
||||
statusListItemIcon.hoverEnabled: true
|
||||
|
||||
onClicked: {
|
||||
root.openSendModal(d.visibleAddress)
|
||||
}
|
||||
|
||||
statusListItemComponentsSlot.spacing: 0
|
||||
property bool showButtons: sensor.containsMouse
|
||||
|
||||
|
@ -78,10 +74,17 @@ StatusListItem {
|
|||
}
|
||||
|
||||
components: [
|
||||
StatusRoundButton {
|
||||
visible: !!root.name && root.showButtons
|
||||
type: StatusRoundButton.Type.Quinary
|
||||
radius: 8
|
||||
icon.name: "send"
|
||||
onClicked: root.openSendModal(d.visibleAddress)
|
||||
},
|
||||
StatusRoundButton {
|
||||
objectName: "savedAddressView_Delegate_menuButton_" + root.name
|
||||
visible: !!root.name
|
||||
icon.color: root.showButtons ? Theme.palette.directColor1 : Theme.palette.baseColor1
|
||||
enabled: root.showButtons
|
||||
type: StatusRoundButton.Type.Quinary
|
||||
radius: 8
|
||||
icon.name: "more"
|
||||
|
|
Loading…
Reference in New Issue