mirror of
https://gitlab.com/comunic/comunicconsole
synced 2025-07-07 10:32:50 +00:00
Can change user email address
This commit is contained in:
@ -28,6 +28,7 @@ export interface TextInputOptions {
|
||||
maxLength?: number;
|
||||
label: string;
|
||||
type?: string;
|
||||
validateInput?: (value: string) => boolean;
|
||||
}
|
||||
|
||||
interface AppDiagProvState {
|
||||
@ -175,6 +176,9 @@ export class ApplicationDialogsProvider extends React.Component<
|
||||
|
||||
if (options.maxLength && value.length > options.maxLength) return false;
|
||||
|
||||
if (options.validateInput && !options.validateInput(value))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user