fix js linter errors

This commit is contained in:
rash
2026-03-13 15:39:10 +01:00
parent e62bed7092
commit c62a6359e1
6 changed files with 27 additions and 6 deletions

View File

@@ -60,5 +60,5 @@ onUnmounted(() => {
})
</script>
<template lang="pug">
input.form-control(ref="input", :id="id", :required="required")
input.form-control(:id="id", ref="input", :required="required")
</template>

View File

@@ -61,5 +61,5 @@ onUnmounted(() => {
})
</script>
<template lang="pug">
input.form-control(ref="input", :id="id", :required="required")
input.form-control(:id="id", ref="input", :required="required")
</template>

View File

@@ -81,7 +81,7 @@ function calcItemsSelected () {
isItemsSelected.value = hasChecked || hasQuantity
}
function focusVoucherField () {
function _focusVoucherField () {
voucherinput.value?.focus()
}

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { computed, inject, ref, watch, onMounted, nextTick } from 'vue'
import { computed, inject, ref, watch, onMounted } from 'vue'
import type { Item, Category } from '~/types'
import { StoreKey } from '~/sharedStore'
import { STRINGS, interpolate } from '~/i18n'

View File

@@ -40,7 +40,7 @@ onMounted(() => {
emit('mounted') // TODO where does this go?
})
watch(() => store.view, (newValue, oldValue) => {
watch(() => store.view, (_newValue, oldValue) => {
if (oldValue && wrapper.value) {
// always make sure the widget is scrolled to the top
// as we only check top, we do not need to wait for a redraw