Skip to content

Commit

Permalink
fix "click to download" button
Browse files Browse the repository at this point in the history
  • Loading branch information
perfectra1n committed Nov 10, 2024
1 parent 0acba0e commit 1d2366f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/public/app/widgets/buttons/global_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ export default class GlobalMenuWidget extends BasicWidget {

const latestVersion = await this.fetchLatestVersion();
this.updateAvailableWidget.updateVersionStatus(latestVersion);
// Show "click to download" button in options menu if there's a new version available
this.$updateToLatestVersionButton.toggle(utils.isUpdateAvailable(latestVersion, glob.triliumVersion));
this.$updateToLatestVersionButton.find(".version-text").text(`Version ${latestVersion} is available, click to download.`);
}

Expand Down

0 comments on commit 1d2366f

Please sign in to comment.