[web] Lint too short variable names

This commit is contained in:
Alain Nussbaumer
2024-04-26 18:24:34 +02:00
parent 8fe6cba6ef
commit d246c42a99
4 changed files with 14 additions and 16 deletions

View File

@@ -163,11 +163,11 @@ export default {
},
methods: {
move_item(e) {
move_item(event) {
const oldPosition =
e.oldIndex + (this.show_only_next_items && this.current_position)
event.oldIndex + (this.show_only_next_items && this.current_position)
const item = this.queue_items[oldPosition]
const newPosition = item.position + (e.newIndex - e.oldIndex)
const newPosition = item.position + (event.newIndex - event.oldIndex)
if (newPosition !== oldPosition) {
webapi.queue_move(item.id, newPosition)
}