feat: show notification on hold action

This commit is contained in:
arcanis committed 2026-10-19 10:22:42 +03:00
1 parent 7f28e47ac4
commit 9b65e01d2f
1 file changed
+1
@@ -126,6 +126,7 @@ export default function PackageInfoDialog({
try { try {
const newHeldStatus = !(status?.is_held ?? false); const newHeldStatus = !(status?.is_held ?? false);
await client.service.servicePackageHold(localPackageBase, currentRepository, newHeldStatus); await client.service.servicePackageHold(localPackageBase, currentRepository, newHeldStatus);
showSuccess("Success", `Package ${newHeldStatus ? "held" : "unheld"}`);
void queryClient.invalidateQueries({ queryKey: QueryKeys.package(localPackageBase, currentRepository) }); void queryClient.invalidateQueries({ queryKey: QueryKeys.package(localPackageBase, currentRepository) });
} catch (exception) { } catch (exception) {
showError("Action failed", `Could not update hold status: ${ApiError.errorDetail(exception)}`); showError("Action failed", `Could not update hold status: ${ApiError.errorDetail(exception)}`);