Fixes bulk edit actions for taxconomy terms.
This commit is contained in:
parent
3b123e91d9
commit
5f5f84f88d
|
@ -117,7 +117,7 @@
|
||||||
:class="{'is-field-history': bulkEditionProcedures[criterion].isDone}"
|
:class="{'is-field-history': bulkEditionProcedures[criterion].isDone}"
|
||||||
class="tainacan-bulk-edition-field tainacan-bulk-edition-field-not-last"
|
class="tainacan-bulk-edition-field tainacan-bulk-edition-field-not-last"
|
||||||
:disabled="bulkEditionProcedures[criterion].isDone"
|
:disabled="bulkEditionProcedures[criterion].isDone"
|
||||||
@input="addToBulkEditionProcedures($event.target.value, 'newValue', criterion)"
|
@update:value="($event) => addToBulkEditionProcedures($event, 'newValue', criterion)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@
|
||||||
:disabled="bulkEditionProcedures[criterion].isDone"
|
:disabled="bulkEditionProcedures[criterion].isDone"
|
||||||
class="tainacan-bulk-edition-field tainacan-bulk-edition-field-last"
|
class="tainacan-bulk-edition-field tainacan-bulk-edition-field-last"
|
||||||
:placeholder="$i18n.get('instruction_select_a_status2')"
|
:placeholder="$i18n.get('instruction_select_a_status2')"
|
||||||
@update:model-value="addToBulkEditionProcedures($event.target.value, 'newValue', criterion)">
|
@update:model-update:value="($event) => addToBulkEditionProcedures($event, 'newValue', criterion)">
|
||||||
<option
|
<option
|
||||||
v-for="(statusOption, index) of $statusHelper.getStatuses().filter(option => { return option.value != 'trash' })"
|
v-for="(statusOption, index) of $statusHelper.getStatuses().filter(option => { return option.value != 'trash' })"
|
||||||
:key="index"
|
:key="index"
|
||||||
|
@ -144,7 +144,7 @@
|
||||||
:disabled="bulkEditionProcedures[criterion].isDone"
|
:disabled="bulkEditionProcedures[criterion].isDone"
|
||||||
class="tainacan-bulk-edition-field tainacan-bulk-edition-field-last"
|
class="tainacan-bulk-edition-field tainacan-bulk-edition-field-last"
|
||||||
:placeholder="$i18n.get('instruction_select_a_comments_status')"
|
:placeholder="$i18n.get('instruction_select_a_comments_status')"
|
||||||
@update:model-value="addToBulkEditionProcedures($event.target.value, 'newValue', criterion)">
|
@update:model-update:value="($event) => addToBulkEditionProcedures($event, 'newValue', criterion)">
|
||||||
<option
|
<option
|
||||||
v-for="(statusOption, index) of $commentsStatusHelper.getStatuses()"
|
v-for="(statusOption, index) of $commentsStatusHelper.getStatuses()"
|
||||||
:key="index"
|
:key="index"
|
||||||
|
@ -202,7 +202,7 @@
|
||||||
:class="{ 'is-field-history': bulkEditionProcedures[criterion].isDone }"
|
:class="{ 'is-field-history': bulkEditionProcedures[criterion].isDone }"
|
||||||
class="tainacan-bulk-edition-field tainacan-bulk-edition-field-last"
|
class="tainacan-bulk-edition-field tainacan-bulk-edition-field-last"
|
||||||
:disabled="bulkEditionProcedures[criterion].isDone || bulkEditionProcedures[criterion].isExecuting"
|
:disabled="bulkEditionProcedures[criterion].isDone || bulkEditionProcedures[criterion].isExecuting"
|
||||||
@input="addToBulkEditionProcedures($event.target.value, 'newValue', criterion)"
|
@update:value="($event) => addToBulkEditionProcedures($event, 'newValue', criterion)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
|
@ -449,7 +449,7 @@
|
||||||
},
|
},
|
||||||
executeBulkEditionProcedure(criterion){
|
executeBulkEditionProcedure(criterion){
|
||||||
let procedure = this.bulkEditionProcedures[criterion];
|
let procedure = this.bulkEditionProcedures[criterion];
|
||||||
|
console.log(procedure.newValue)
|
||||||
if (procedure.action === this.editionActions.redefine) {
|
if (procedure.action === this.editionActions.redefine) {
|
||||||
Object.assign(this.bulkEditionProcedures[criterion], { 'isExecuting': true });
|
Object.assign(this.bulkEditionProcedures[criterion], { 'isExecuting': true });
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue