diff --git a/apps/mobile/src/components/dialogs/addtopic/index.js b/apps/mobile/src/components/dialogs/addtopic/index.js index c1055b4ea..efe48dfc0 100644 --- a/apps/mobile/src/components/dialogs/addtopic/index.js +++ b/apps/mobile/src/components/dialogs/addtopic/index.js @@ -129,11 +129,13 @@ export class AddTopicDialog extends React.Component { { this.title = value; }} diff --git a/apps/mobile/src/components/dialogs/vault/index.js b/apps/mobile/src/components/dialogs/vault/index.js index 53a5dc0ec..8a6494104 100644 --- a/apps/mobile/src/components/dialogs/vault/index.js +++ b/apps/mobile/src/components/dialogs/vault/index.js @@ -334,6 +334,7 @@ export class VaultDialog extends Component { }); try { let verified = await db.user.verifyPassword(this.password); + if (!(await db.user.getUser())) verified = true; if (verified) { await db.vault.delete(this.state.deleteAll); eSendEvent('vaultUpdated'); @@ -541,7 +542,7 @@ export class VaultDialog extends Component { _openInEditor(note) { this.close(); - InteractionManager.runAfterInteractions(() => { + InteractionManager.runAfterInteractions(async () => { eSendEvent(eOnLoadNote, note); if (!DDS.isTab) { tabBarRef.current?.goToPage(1); diff --git a/apps/mobile/src/components/sheets/addnotebook/index.js b/apps/mobile/src/components/sheets/addnotebook/index.js index 33471f188..2534b0545 100644 --- a/apps/mobile/src/components/sheets/addnotebook/index.js +++ b/apps/mobile/src/components/sheets/addnotebook/index.js @@ -364,6 +364,7 @@ export class AddNotebookSheet extends React.Component { }} blurOnSubmit={false} button={{ + testID: 'topic-add-button', icon: this.state.editTopic ? 'check' : 'plus', onPress: this.onSubmit, color: topicInputFocused ? colors.accent : colors.icon diff --git a/apps/mobile/src/components/sheets/movenotes/movenote.tsx b/apps/mobile/src/components/sheets/movenotes/movenote.tsx index b9aefaa8d..0c0b2e6d2 100644 --- a/apps/mobile/src/components/sheets/movenotes/movenote.tsx +++ b/apps/mobile/src/components/sheets/movenotes/movenote.tsx @@ -95,6 +95,7 @@ export const MoveNotes = ({ const renderItem = ({ item, index }) => { return ( { if (item.type == 'topic') { setTopic(topic ? null : item); diff --git a/apps/mobile/src/components/ui/input/index.tsx b/apps/mobile/src/components/ui/input/index.tsx index 44aafa2d2..45b72a8d0 100644 --- a/apps/mobile/src/components/ui/input/index.tsx +++ b/apps/mobile/src/components/ui/input/index.tsx @@ -37,6 +37,7 @@ interface InputProps extends TextInputProps { icon: string; color: ColorValue; onPress: () => void; + testID?: string; }; buttons?: React.ReactNode; onBlurInput?: () => void; @@ -257,6 +258,7 @@ const Input = ({ {button && ( { return (