Skip to content

Commit

Permalink
Add Link to Releases
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskerr committed Nov 15, 2023
1 parent aabd4ae commit f855d74
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/zui/src/domain/updates/mac-win-updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class MacWinUpdater implements Updater {
const {updateInfo} = await autoUpdater.checkForUpdates()
const latest = updateInfo.version
const current = app.getVersion()
if (semver.lte(current, latest)) {
if (semver.lt(current, latest)) {
return latest
} else {
return null
Expand Down
4 changes: 4 additions & 0 deletions apps/zui/src/views/update-window/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
overflow: hidden;
}

.main a {
color: var(--primary-color);
}

.footer {
display: flex;
width: 100%;
Expand Down
6 changes: 6 additions & 0 deletions apps/zui/src/views/update-window/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import ProgressIndicator from "src/js/components/ProgressIndicator"
import {isNumber} from "lodash"
import {invoke} from "src/core/invoke"
import {errorToString} from "src/util/error-to-string"
import Link from "src/js/components/common/Link"

function useStatus() {
const nextVersion = useSelector(Updates.getNextVersion)
Expand Down Expand Up @@ -44,6 +45,11 @@ function useTemplate() {
case "not-available":
return {
title: "Up to Date!",
text: (
<Link href="https://github.com/brimdata/zui/releases">
View releases
</Link>
),
button: ["OK", closeWindow],
}
case "available":
Expand Down

0 comments on commit f855d74

Please sign in to comment.