mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 15:37:33 +08:00
add enable animate option
This commit is contained in:
+4
-1
@@ -4,7 +4,8 @@ const settingsLocalStorageKey = 'lab_user_settings';
|
||||
const serverSettingsCookieKey = 'ACP_SETTINGS';
|
||||
|
||||
const defaultSettings = {
|
||||
lang: 'en'
|
||||
lang: 'en',
|
||||
animate: true
|
||||
};
|
||||
|
||||
function getOriginalSettings() {
|
||||
@@ -59,5 +60,7 @@ function getServerSetting(key) {
|
||||
export default {
|
||||
getLanguage: () => getOriginalOption('lang'),
|
||||
setLanguage: value => setOption('lang', value),
|
||||
isEnableAnimate: () => getOriginalOption('animate'),
|
||||
setEnableAnimate: value => setOption('animate', value),
|
||||
isUserRegistrationEnabled: () => getServerSetting('r') === '1'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user