From 11d38ca911debc32b89a6650c4a122b289647c80 Mon Sep 17 00:00:00 2001
From: AlphaX-Projects <77661270+AlphaX-Projects@users.noreply.github.com>
Date: Mon, 8 May 2023 10:19:23 +0200
Subject: [PATCH] Fix buttons
---
qortal-ui-core/src/components/app-view.js | 1 +
qortal-ui-core/src/components/check-for-update.js | 7 +++----
.../src/components/settings-view/notifications-view.js | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/qortal-ui-core/src/components/app-view.js b/qortal-ui-core/src/components/app-view.js
index 2c197a3a..e2f69b69 100644
--- a/qortal-ui-core/src/components/app-view.js
+++ b/qortal-ui-core/src/components/app-view.js
@@ -489,6 +489,7 @@ class AppView extends connect(store)(LitElement) {
+
this.openLogout()} title="${translate("logout.logout")}">
diff --git a/qortal-ui-core/src/components/check-for-update.js b/qortal-ui-core/src/components/check-for-update.js
index 6ad85f52..a14c0fd0 100644
--- a/qortal-ui-core/src/components/check-for-update.js
+++ b/qortal-ui-core/src/components/check-for-update.js
@@ -32,15 +32,14 @@ class CheckForUpdate extends LitElement {
}
renderUpdateButton() {
- if (!isElectron) {
+ if (!isElectron()) {
+ return html``
+ } else {
return html`
this.checkupdate()} title="${translate("appspage.schange38")} UI">
-
`
- } else {
- return html``
}
}
diff --git a/qortal-ui-core/src/components/settings-view/notifications-view.js b/qortal-ui-core/src/components/settings-view/notifications-view.js
index f0474536..ca209c24 100644
--- a/qortal-ui-core/src/components/settings-view/notifications-view.js
+++ b/qortal-ui-core/src/components/settings-view/notifications-view.js
@@ -152,14 +152,14 @@ class NotificationsView extends connect(store)(LitElement) {
}
renderSetCoreButton() {
- if (!isElectron) {
+ if (!isElectron()) {
+ return html``
+ } else {
return html`
this.checkCoreSettings()} class="q-button"> ${translate("settings.core")}
`
- } else {
- return html``
}
}