fix(plex): optimistic toggle + 'importing' indicator for watch-sync

The watch-sync switch only flipped once the (multi-second) import request returned, so a click read as
'nothing happened' and invited repeat clicks. Reflect the toggle's target optimistically while the
mutation is in flight and show an 'Importing your Plex watch history…' spinner line, so it's obvious
the switch responded and is working.
This commit is contained in:
npeter83 2026-07-09 15:34:28 +02:00
parent cbe203391e
commit 02837b9a4b
4 changed files with 32 additions and 19 deletions

View file

@ -13,7 +13,8 @@
"importNow": "Import from Plex now",
"imported": "Imported from Plex: {{watched}} watched, {{in_progress}} in progress.",
"lastSync": "Last import: {{when}}",
"never": "Not imported yet"
"never": "Not imported yet",
"importing": "Importing your Plex watch history…"
},
"save": {
"unsaved": "Unsaved changes",