feat(react/settings): port totp settings

This commit is contained in:
Elian Doran
2025-08-19 10:37:14 +03:00
parent 73ff41f2b2
commit cfb3607052
7 changed files with 229 additions and 349 deletions

View File

@@ -25,6 +25,7 @@ export interface PromptDialogOptions {
defaultValue?: string;
shown?: PromptShownDialogCallback;
callback?: (value: string | null) => void;
readOnly?: boolean;
}
function PromptDialogComponent() {
@@ -77,7 +78,9 @@ function PromptDialogComponent() {
<FormTextBox
name="prompt-dialog-answer"
inputRef={answerRef}
currentValue={value} onChange={setValue} />
currentValue={value} onChange={setValue}
readOnly={opts.current?.readOnly}
/>
</FormGroup>
</Modal>
);