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:
2026-07-09 15:34:28 +02:00
parent 980f228561
commit e392c26aa5
4 changed files with 32 additions and 19 deletions
+2 -1
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",