This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/web/src/elements/forms/helpers.ts

10 lines
330 B
TypeScript
Raw Normal View History

import { HorizontalFormElement } from "@goauthentik/app/elements/forms/HorizontalFormElement";
export class PreventFormSubmit {
// Stub class which can be returned by form elements to prevent the form from submitting
constructor(
public message: string,
public element?: HorizontalFormElement,
) {}
}