fix: normalize all API responses, add error handling and reset confirmation

- Extract normalizeConfig() for consistent response normalization
- Add onError handlers to mutations with useNotify
- Add window.confirm before destructive reset action
- Add resetConfirm translation key to all locales
This commit is contained in:
Fringg
2026-02-13 00:41:00 +03:00
parent 1a0a5ff453
commit 150a1b2dba
6 changed files with 33 additions and 12 deletions

View File

@@ -1001,6 +1001,7 @@
"emojiId": "شناسه ایموجی سفارشی",
"emojiPlaceholder": "شناسه ایموجی سفارشی (اختیاری)",
"resetAll": "بازنشانی همه سبک‌ها",
"resetConfirm": "همه سبک‌های دکمه به حالت پیش‌فرض بازنشانی شوند؟",
"hidden": "پنهان",
"customLabels": "نام‌های دکمه",
"labelPlaceholder": "متن سفارشی دکمه",