Skip to content

Commit

Permalink
Experimental update channel rebrand
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Sep 27, 2024
1 parent 9f5672d commit faa5f79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/ASF/Releases.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
return this.$t('released-ago', { time });
},
isLatestForUpdateChannel(i) {
if (this.updateChannel === UPDATECHANNEL.EXPERIMENTAL && i === 0) return true;
if (this.updateChannel === UPDATECHANNEL.PRERELEASE && i === 0) return true;
if (this.updateChannel === UPDATECHANNEL.STABLE && i === 1) return true;
return false;
},
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/asf.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const humanizer = humanizeDuration.humanizer({
export const UPDATECHANNEL = {
NONE: 0,
STABLE: 1,
EXPERIMENTAL: 2,
PRERELEASE: 2,
};

export const state = {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function isReleaseAvailable() {
return (latestCachedVersion > asf.version);
}

const endpoint = (asf.updateChannel === UPDATECHANNEL.EXPERIMENTAL) ? 'www/github/release' : 'www/github/release/latest';
const endpoint = (asf.updateChannel === UPDATECHANNEL.PRERELEASE) ? 'www/github/release' : 'www/github/release/latest';
const release = await http.get(endpoint);

set('latest-release', release.Version);
Expand Down

0 comments on commit faa5f79

Please sign in to comment.