Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9f435fd423 | |||
| 67b8efd8f3 |
@@ -1,6 +1,8 @@
|
||||
<template>
|
||||
<CommonAlert
|
||||
v-if="
|
||||
store.isDistributedBySpeckle &&
|
||||
store.latestAvailableVersion &&
|
||||
!store.isConnectorUpToDate &&
|
||||
!hasDismissedAlert &&
|
||||
!store.isUpdateNotificationDisabled
|
||||
|
||||
+5
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user