mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
close dialog
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user