Effects targeting calculations by tag now work in the engine and actions
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
<smart-select
|
||||
label="Operation"
|
||||
append-icon="mdi-menu-down"
|
||||
:disabled="model.targetByTags"
|
||||
:hint="operationHint"
|
||||
:error-messages="errors.operation"
|
||||
:menu-props="{transition: 'slide-y-transition', lazy: true}"
|
||||
@@ -192,6 +193,7 @@
|
||||
displayedIcon: 'add',
|
||||
iconClass: '',
|
||||
addExtraTagsLoading: false,
|
||||
oldOperation: undefined,
|
||||
operations: [
|
||||
{value: 'base', text: 'Base Value'},
|
||||
{value: 'add', text: 'Add'},
|
||||
@@ -274,8 +276,15 @@
|
||||
changeTargetByTags(value){
|
||||
if(value === 'stats'){
|
||||
this.$emit('change', {path: ['targetByTags'], value: undefined});
|
||||
if (this.oldOperation && this.oldOperation !== this.model.operation){
|
||||
this.$emit('change', {path: ['operation'], value: this.oldOperation});
|
||||
}
|
||||
} else if (value === 'tags'){
|
||||
this.$emit('change', {path: ['targetByTags'], value: true});
|
||||
if (this.model.operation !== 'add'){
|
||||
this.oldOperation = this.model.operation;
|
||||
this.$emit('change', {path: ['operation'], value: 'add'});
|
||||
}
|
||||
}
|
||||
},
|
||||
addExtraTags(){
|
||||
|
||||
Reference in New Issue
Block a user