Add newly saved hosts to the beginning of the array
This commit is contained in:
parent
5690914c0c
commit
e831f842cf
1 changed files with 2 additions and 1 deletions
|
|
@ -283,7 +283,8 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
saveHost: function() {
|
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,
|
name: this.$store.state.apiConfig.name,
|
||||||
hostname: this.$store.state.host,
|
hostname: this.$store.state.host,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue