diff options
Diffstat (limited to 'code/app/src/lib/models/internal/FormError.ts')
| -rw-r--r-- | code/app/src/lib/models/internal/FormError.ts | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/code/app/src/lib/models/internal/FormError.ts b/code/app/src/lib/models/internal/FormError.ts deleted file mode 100644 index f6d8978..0000000 --- a/code/app/src/lib/models/internal/FormError.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type { KnownProblem } from "./KnownProblem"; - -export class FormError { - title: string; - subtitle: string; - constructor(title: string = "", subtitle: string = "") { - this.title = title; - this.title = subtitle; - } - - set(title: string = "", subtitle: string = "") { - this.title = title; - this.subtitle = subtitle; - } - - set_from_known_problem(knownProblem: KnownProblem) { - this.title = knownProblem.title ?? ""; - this.subtitle = knownProblem.subtitle ?? ""; - } - - has_error() { - return this.title?.length > 0 || this.subtitle?.length > 0; - } -}
\ No newline at end of file |
