From 47da36f2c281e0f5ff7a66254e36076a7c7cfc47 Mon Sep 17 00:00:00 2001 From: Allen Bai Date: Apr 17 2020 20:20:10 +0000 Subject: coreos-download: add next stream Related: https://github.com/coreos/fedora-coreos-streams/issues/87#issuecomment-615426574 Signed-off-by: Allen Bai --- diff --git a/sites/static/js/coreos-download.js b/sites/static/js/coreos-download.js index a8bcd78..339fddc 100644 --- a/sites/static/js/coreos-download.js +++ b/sites/static/js/coreos-download.js @@ -173,6 +173,7 @@ var coreos_download_app = new Vue({ if (this.streamData === null) return; option_stable = h('option', { attrs: { value: "stable", selected: this.stream === "stable" ? "selected" : null }}, "stable"); option_testing = h('option', { attrs: { value: "testing", selected: this.stream === "testing" ? "selected" : null }}, "testing"); + option_next = h('option', { attrs: { value: "next", selected: this.stream === "next" ? "selected" : null }}, "next"); selectOptions = h('select', { class: "mx-1", on: { @@ -185,7 +186,8 @@ var coreos_download_app = new Vue({ } }, [ option_stable, - option_testing + option_testing, + option_next ]); streamName = h('p', {}, [ "Stream: ", @@ -378,6 +380,9 @@ var coreos_download_app = new Vue({ case 'testing': this.stream = "testing"; break; + case 'next': + this.stream = "next"; + break; default: this.stream = "stable"; }