fix: correct "bugs" to "issues" in routing table and README references across multiple documentation files

This commit is contained in:
2026-06-14 07:48:10 +00:00
parent f79a427f32
commit f2b910ea75
162 changed files with 7011 additions and 1134 deletions
+14
View File
@@ -15,4 +15,18 @@ export class OptimisticAction {
return null;
}
}
async submitOptimistic(url, params, errorTarget, apply, revert, reconcile) {
apply();
try {
const result = await Http.sendForm(url, params);
if (reconcile) reconcile(result);
return result;
} catch (error) {
console.error("optimistic action failed", error);
revert();
if (errorTarget) Toast.flash(errorTarget, "Error", 1500);
return null;
}
}
}