diff --git a/lib/Gateway.ts b/lib/Gateway.ts
index a89238e8459..3020c10e735 100644
--- a/lib/Gateway.ts
+++ b/lib/Gateway.ts
@@ -202,6 +202,7 @@ export type GatewayConfig = {
server?: string
}
disableChangelog?: boolean
+ notifyNewVersions?: boolean
}
interface ValueIdTopic {
diff --git a/src/App.vue b/src/App.vue
index 47b47afa4cf..1adf2d8de94 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1094,7 +1094,6 @@ export default {
},
async checkChangelog() {
const settings = useBaseStore().gateway
- if (settings?.disableChangelog) return
const versions = settings?.versions
// get changelog from github latest release
@@ -1105,7 +1104,10 @@ export default {
const currentVersion = import.meta.env.VITE_VERSION
const latestVersion = latest.tag_name.replace('v', '')
- if (latestVersion !== currentVersion) {
+ if (
+ latestVersion !== currentVersion &&
+ settings.notifyNewVersions
+ ) {
this.showSnackbar(
`New version available: ${latest.tag_name}`,
'info',
@@ -1113,6 +1115,8 @@ export default {
)
}
+ if (settings?.disableChangelog) return
+
if (versions?.app !== this.appInfo.appVersion) {
const current = await this.getRelease(
'zwave-js-ui',
diff --git a/src/stores/base.js b/src/stores/base.js
index 7ed7a639deb..6bdc651f6a7 100644
--- a/src/stores/base.js
+++ b/src/stores/base.js
@@ -85,6 +85,7 @@ const useBaseStore = defineStore('base', {
values: [],
jobs: [],
disableChangelog: false,
+ notifyNewVersions: false,
},
appInfo: {
homeid: '',
diff --git a/src/views/Settings.vue b/src/views/Settings.vue
index 03e0077fd95..4a8ae713008 100644
--- a/src/views/Settings.vue
+++ b/src/views/Settings.vue
@@ -152,6 +152,16 @@
"
>
+
+
+
Devices values configuration