Added action form, but without buffs

This commit is contained in:
Stefan Zermatten
2019-07-19 14:07:22 +02:00
parent 0c002ae5cd
commit a0dc36557c
13 changed files with 444 additions and 57 deletions

View File

@@ -32,6 +32,22 @@ const schemaFormMixin = {
}
if (ack) ack();
},
push(modifier, ack){
for (let key in modifier){
this.model[key].push(modifier[key]);
}
if (ack) ack();
},
changeAtIndex(field, index, modifier, ack){
for (let key in modifier){
this.$set(this.model[field][index], key, modifier[key])
}
if (ack) ack();
},
removeAtIndex(field, index, ack){
this.model[field].splice(index, 1);
if (ack) ack();
},
},
};