Initial curated Unraid-AppOps-Gateway source from 3bd6f6fee310125bfbb4d4650389a817f498724d

This commit is contained in:
Public Source Publisher committed 2026-10-01 01:35:57 +02:00
commit 1dfbca08a1
528 files changed
+131054

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
export type SetupContextAlertTone = "warning" | "error";
export interface SetupContextAlert {
tone: SetupContextAlertTone;
title: string;
description: string;
retryLabel: string;
partial: boolean;
}
const partialPrefix = "Connector-bind context deels niet geladen.";
export const buildSetupContextAlert = (loadError?: string | null): SetupContextAlert | null => {
if (!loadError) return null;
const partial = loadError.startsWith(partialPrefix);
if (partial) {
return {
tone: "warning",
title: "Setup context deels geladen.",
description: loadError,
retryLabel: "Context opnieuw laden",
partial: true,
};
}
return {
tone: "error",
title: "Setup context laden mislukt.",
description: loadError,
retryLabel: "Opnieuw proberen",
partial: false,
};
};