Compare commits

...

2 Commits

Author SHA1 Message Date
Björn 9f435fd423 chore: formatting 2025-10-06 21:22:47 +02:00
Björn 67b8efd8f3 fix: hide update alert for non-distributed connectors 2025-10-06 21:11:05 +02:00
2 changed files with 7 additions and 3 deletions
+2
View File
@@ -1,6 +1,8 @@
<template>
<CommonAlert
v-if="
store.isDistributedBySpeckle &&
store.latestAvailableVersion &&
!store.isConnectorUpToDate &&
!hasDismissedAlert &&
!store.isUpdateNotificationDisabled
+5 -3
View File
@@ -81,9 +81,11 @@ export const useHostAppStore = defineStore('hostAppStore', () => {
$openUrl(latestAvailableVersion.value?.Url as string)
}
const isConnectorUpToDate = computed(
() => connectorVersion.value === latestAvailableVersion.value?.Number
)
const isConnectorUpToDate = computed(() => {
if (!isDistributedBySpeckle.value) return true
if (!latestAvailableVersion.value?.Number || !connectorVersion.value) return true
return connectorVersion.value === latestAvailableVersion.value.Number
})
const setHostAppError = (error: Nullable<HostAppError>) => {
hostAppError.value = error