feat: consistent vibration feedback via vibrate() utility across modules

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ulas
2026-03-30 21:18:44 +02:00
parent 499ce2cd29
commit b9ec36611d
5 changed files with 11 additions and 7 deletions
+2 -1
View File
@@ -5,7 +5,7 @@
*/
import { api } from '/api.js';
import { stagger } from '/utils/ux.js';
import { stagger, vibrate } from '/utils/ux.js';
// --------------------------------------------------------
// Konstanten
@@ -441,6 +441,7 @@ function wireListContentEvents(container) {
try {
await api.patch(`/shopping/items/${id}`, { is_checked: newVal });
vibrate(10);
} catch (err) {
// Zurückrollen
if (item) item.is_checked = checked;