Merge branch 'master' into mann-fr-cv-studio-0
This commit is contained in:
commit
73a7c7a318
|
|
@ -67,20 +67,22 @@ var importComponent = {
|
||||||
|
|
||||||
deleteClicked: function(index)
|
deleteClicked: function(index)
|
||||||
{
|
{
|
||||||
console.log(index);
|
// console.log(index);
|
||||||
var response = confirm("Are you sure you want to delete this position? " + index);
|
var response = confirm("Are you sure you want to delete this position? " + index);
|
||||||
|
|
||||||
if (response == true)
|
if (response == true)
|
||||||
{
|
{
|
||||||
this.$root.versions.splice(index, 1);
|
this.$root.versions.splice(index, 1);
|
||||||
}
|
}
|
||||||
|
storage.setLocalStorage("versions",this.$root.versions);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
moveUpClicked: function(index)
|
moveUpClicked: function(index)
|
||||||
{
|
{
|
||||||
console.log(index);
|
// console.log(index);
|
||||||
this.$root.moveArrayPosition(this.$root.versions, index, index - 1);
|
this.$root.moveArrayPosition(this.$root.versions, index, index - 1);
|
||||||
|
storage.setLocalStorage("versions",this.$root.versions);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue