Saving the order of versions.

This commit is contained in:
chris2fr 2020-10-24 15:35:13 +02:00
parent 8b6b908f23
commit 9b61babc44
1 changed files with 4 additions and 2 deletions

View File

@ -67,20 +67,22 @@ var importComponent = {
deleteClicked: function(index)
{
console.log(index);
// console.log(index);
var response = confirm("Are you sure you want to delete this position? " + index);
if (response == true)
{
this.$root.versions.splice(index, 1);
}
storage.setLocalStorage("versions",this.$root.versions);
},
moveUpClicked: function(index)
{
console.log(index);
// console.log(index);
this.$root.moveArrayPosition(this.$root.versions, index, index - 1);
storage.setLocalStorage("versions",this.$root.versions);
},