mirror of
https://github.com/zadam/trilium.git
synced 2025-12-23 08:39:57 +01:00
feat(react/settings): port totp settings
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user