qml: show swap service problem to user

This commit is contained in:
Sander van Grieken
2022-12-28 14:59:39 +01:00
parent d80e9e7dea
commit 87aa44eb26
2 changed files with 2 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ ElDialog {
parent: Overlay.overlay
modal: true
z: 1 // raise z so it also covers dialogs using overlay as parent
anchors.centerIn: parent

View File

@@ -184,6 +184,7 @@ class QESwapHelper(AuthMixin, QObject):
asyncio.run(swap_manager.get_pairs())
self._service_available = True
except Exception as e:
self.error.emit(_('Swap service unavailable'))
self._logger.error(f'could not get pairs for swap: {repr(e)}')
return