Add newly saved hosts to the beginning of the array

This commit is contained in:
Joel Collins 2019-09-20 16:42:16 +01:00
parent 5690914c0c
commit e831f842cf

View file

@ -283,7 +283,8 @@ export default {
},
saveHost: function() {
this.savedHosts.push(
// We use unshift instead of push to add the entry to the beginning of the array
this.savedHosts.unshift(
{
name: this.$store.state.apiConfig.name,
hostname: this.$store.state.host,