Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions src/lib/shared/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ export const getBaseUrl = (env: string): string => {
}

export const defaultErrorDescription =
"Något gick fel. Du kan kontakta oss om detta fortsätter.";
export const defaultErrorTitle = "Något gick fel...";
// "Något gick fel. Du kan kontakta oss om detta fortsätter.";
"Tjänsten har tyvärr lagts ned."
export const defaultErrorTitle =
// "Något gick fel...";
"Denna tjänsten är ej i bruk längre..."
export const defaultErrorInfo: App.Error = {
message: defaultErrorTitle,
description:
"Ett oväntat fel uppstod. Du kan kontakta oss om detta fortsätter.",
// "Ett oväntat fel uppstod. Du kan kontakta oss om detta fortsätter.",
"Det går inte att göra detta längre, då tjänsten ej är i bruk."
};

export const getDefaultErrorInfo = (
Expand Down Expand Up @@ -59,8 +63,8 @@ export const getFailFormMessage = (
}
): Message => ({
variant: options?.variant ?? "destructive",
title: options?.title ?? "Något gick fel",
description: options?.description ?? "Du kan kontakta oss om detta fortsätter.",
title: options?.title ?? "Denna tjänst är inte längre i bruk", //"Något gick fel",
description: options?.description ?? "Detta går tyvärr inte att göra längre",//"Du kan kontakta oss om detta fortsätter.",
trackingId: options?.trackingId ?? undefined,
id: options?.messageId ?? MessageId.Unknown,
data: options?.data ?? undefined,
Expand Down
Loading