Skip to content
Snippets Groups Projects
Commit 8438d5a2 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix prerecorded value deletion

parent ee80a3b0
No related branches found
No related tags found
1 merge request!568REDMINE_ISSUE-17139 | Page édition signalement - pas de suppression attribut liste pré-enregistrée ou liste
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<div <div
v-if="selectedPrerecordedValue" v-if="selectedPrerecordedValue"
class="multiselect__clear" class="multiselect__clear"
@click.prevent.stop="clear" @click.prevent.stop="clearPrerecordedValue"
> >
<i <i
class="close icon" class="close icon"
...@@ -383,7 +383,8 @@ export default { ...@@ -383,7 +383,8 @@ export default {
]), ]),
updateStore_extra_form(evt) { updateStore_extra_form(evt) {
if (this.field) { console.log(this.field);
if (this.field) {
const newExtraForm = this.field; const newExtraForm = this.field;
if (this.field.field_type === 'boolean') { if (this.field.field_type === 'boolean') {
newExtraForm['value'] = evt.target.checked; //* if checkbox use "checked" newExtraForm['value'] = evt.target.checked; //* if checkbox use "checked"
...@@ -416,10 +417,11 @@ export default { ...@@ -416,10 +417,11 @@ export default {
this.prerecordedListSearchQuery = null; this.prerecordedListSearchQuery = null;
this.updateStore_extra_form({ target: { value: this.selectedPrerecordedValue } }); this.updateStore_extra_form({ target: { value: this.selectedPrerecordedValue } });
}, },
clear() { clearPrerecordedValue() {
this.selectedPrerecordedValue = null; this.selectedPrerecordedValue = null;
this.prerecordedListSearchQuery = null; this.prerecordedListSearchQuery = null;
this.updateStore_extra_form({ target: { value: null } });
}, },
selectMultipleCheckbox(e) { selectMultipleCheckbox(e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment