mirror of
https://github.com/balzack/databag.git
synced 2025-02-11 19:19:16 +00:00
optimize applying push setting
This commit is contained in:
parent
7e77f30b9e
commit
5c233a8ce4
@ -91,11 +91,12 @@ export function useSettings() {
|
||||
updateState({ monthLast: flag });
|
||||
await profile.actions.setMonthLast(flag);
|
||||
},
|
||||
setNotifications: async (flag) => {
|
||||
await account.actions.setNotifications(flag);
|
||||
setNotifications: async (pushEnabled) => {
|
||||
updateState({ pushEnabled });
|
||||
await account.actions.setNotifications(pushEnabled);
|
||||
},
|
||||
showLogin: () => {
|
||||
updateState({ login: true, username: state.handle, password: '', confirm: '', validated: true });
|
||||
updateState({ login: true, username: state.handle, password: '', available: true, validated: true });
|
||||
},
|
||||
hideLogin: () => {
|
||||
updateState({ login: false });
|
||||
|
Loading…
Reference in New Issue
Block a user