mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
fix: disable local only mode for logged out users
This commit is contained in:
@@ -514,7 +514,7 @@ export const useActions = ({ close = () => {}, item }) => {
|
||||
}
|
||||
|
||||
async function toggleLocalOnly() {
|
||||
if (!checkNoteSynced()) return;
|
||||
if (!checkNoteSynced() || !user) return;
|
||||
db.notes.note(item.id).localOnly();
|
||||
Navigation.queueRoutesForUpdate(
|
||||
'TaggedNotes',
|
||||
@@ -569,7 +569,7 @@ export const useActions = ({ close = () => {}, item }) => {
|
||||
icon: 'plus',
|
||||
func: async () => {
|
||||
close();
|
||||
await sleep(300);
|
||||
await sleep(500);
|
||||
MoveNotes.present(db.notebooks.notebook(item.notebookId).data, item);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user