mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
close dialog
This commit is contained in:
@@ -447,15 +447,11 @@ export const ActionSheetComponent = ({
|
||||
db.vault
|
||||
.add(note.id)
|
||||
.then((r) => {
|
||||
console.log(r);
|
||||
close();
|
||||
sendNoteEditedEvent(note.id, false, true);
|
||||
localRefresh(note.type);
|
||||
if (note.locked && PremiumService.get()) {
|
||||
close();
|
||||
}
|
||||
})
|
||||
.catch(async (e) => {
|
||||
console.log(e);
|
||||
switch (e.message) {
|
||||
case db.vault.ERRORS.noVault:
|
||||
close('novault');
|
||||
|
||||
Reference in New Issue
Block a user