Avoid flicking of backup target list if default changes

This commit is contained in:
Johannes Zellner
2025-08-13 19:58:16 +02:00
parent 0c1c5ae9e5
commit 55d401c098
+2 -1
View File
@@ -134,7 +134,8 @@ async function onPrimaryTargetChanged(value) {
const [error] = await backupTargetsModel.setPrimary(value);
if (error) return console.error(error);
await refresh();
// update the list to be in sync without flickering
targets.value.forEach(t => t.primary = t.id === value);
primaryTargetId.value = value;
primaryTargetChangeBusy.value = false;