Skip to content

Commit 325fc6e

Browse files
frontend: firmwares: Change list order
Stables are shown in reverse release order (newer to older). Beta and Dev go to the end of the list.
1 parent 4b9d782 commit 325fc6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/frontend/src/components/autopilot/FirmwareManager.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,12 @@ export default Vue.extend({
237237
.map((firmware) => ({ value: firmware.url, text: firmware.name }))
238238
.filter((firmware) => firmware.text !== 'OFFICIAL')
239239
.sort((a, b) => {
240-
const release_show_order = ['official', 'beta', 'dev', 'stable']
240+
const release_show_order = ['dev', 'beta', 'stable']
241241
const prior_a = release_show_order.indexOf(a.text.toLowerCase().split('-')[0])
242242
const prior_b = release_show_order.indexOf(b.text.toLowerCase().split('-')[0])
243243
return prior_a > prior_b ? 1 : -1
244244
})
245+
.reverse()
245246
},
246247
allow_installing(): boolean {
247248
if (this.install_status === InstallStatus.Installing) {

0 commit comments

Comments
 (0)