Make sure file settings are updated properly when removing items
This commit is contained in:
parent
7cf40a9ee4
commit
4d2347cf84
|
@ -20,8 +20,8 @@
|
|||
<!-- Maybe add a preview here later? -->
|
||||
<!-- For now just show the selected file path -->
|
||||
<span class="bd-file-path">{{ file_path }}</span>
|
||||
<span class="bd-file-open" @click="() => openItem(file_path)"><MiOpenInNew /></span>
|
||||
<span class="bd-file-remove" :class="{'bd-disabled': setting.disabled}" @click="() => removeItem(file_path)"><MiMinus /></span>
|
||||
<span class="bd-file-open" @click="openItem(file_path)"><MiOpenInNew /></span>
|
||||
<span class="bd-file-remove" :class="{'bd-disabled': setting.disabled}" @click="removeItem(file_path)"><MiMinus /></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -51,7 +51,7 @@
|
|||
},
|
||||
removeItem(file_path) {
|
||||
if (this.setting.disabled) return;
|
||||
Utils.removeFromArray(this.setting.value, file_path);
|
||||
this.setting.value = Utils.removeFromArray(this.setting.value, file_path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue