Commit e831f842 authored by Joel Collins's avatar Joel Collins
Browse files

Add newly saved hosts to the beginning of the array

parent 5690914c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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,