Skip to content

Commit

Permalink
Downgrade 21.09 to 05, temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Sep 8, 2021
1 parent 5c78a79 commit 36782f9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion config/plugins/webhooks/news/script.js
Expand Up @@ -23,7 +23,16 @@ function newsUnseen() {
}

function addNewsIframe() {
const currentGalaxyVersion = Galaxy.config.version_major;
var currentGalaxyVersion = Galaxy.config.version_major;

// TODO/@hexylena: By 21.01 we will have a proper solution for this. For
// now we'll hardcode the version users 'see'. @hexylena will remove this
// code when she writes the user-facing release notes, and then will file
// an issue for how we'll fix this properly.
if(currentGalaxyVersion == "21.09") {
currentGalaxyVersion = "21.05";
}

const releaseNotes = `https://docs.galaxyproject.org/en/master/releases/${currentGalaxyVersion}_announce_user.html`;
const lastSeenVersion = window.localStorage.getItem("galaxy-news-seen-release");
// Check that they've seen the current version's release notes.
Expand Down

0 comments on commit 36782f9

Please sign in to comment.