close dialog

This commit is contained in:
ammarahm-ed
2020-12-31 21:33:37 +05:00
parent bdd14a862d
commit cdc1162499

View File

@@ -447,15 +447,11 @@ export const ActionSheetComponent = ({
db.vault db.vault
.add(note.id) .add(note.id)
.then((r) => { .then((r) => {
console.log(r); close();
sendNoteEditedEvent(note.id, false, true); sendNoteEditedEvent(note.id, false, true);
localRefresh(note.type); localRefresh(note.type);
if (note.locked && PremiumService.get()) {
close();
}
}) })
.catch(async (e) => { .catch(async (e) => {
console.log(e);
switch (e.message) { switch (e.message) {
case db.vault.ERRORS.noVault: case db.vault.ERRORS.noVault:
close('novault'); close('novault');