restructure settings definitions
This commit is contained in:
parent
694a1f0103
commit
a461068e40
9 changed files with 432 additions and 139 deletions
|
|
@ -5,7 +5,7 @@ import 'virtual:pleroma-fe/service_worker_env'
|
|||
import { createI18n } from 'vue-i18n'
|
||||
|
||||
import { storage } from 'src/lib/storage.js'
|
||||
import { instanceDefaultConfig } from 'src/modules/default_config_state.js'
|
||||
import { INSTANCE_DEFAULT_CONFIG } from 'src/modules/default_config_state.js'
|
||||
import { parseNotification } from 'src/services/entity_normalizer/entity_normalizer.service.js'
|
||||
import { prepareNotificationObject } from 'src/services/notification_utils/notification_utils.js'
|
||||
import { cacheKey, emojiCacheKey, shouldCache } from 'src/services/sw/sw.js'
|
||||
|
|
@ -40,7 +40,7 @@ const setSettings = async () => {
|
|||
i18n.locale = locale
|
||||
const notificationsNativeArray = Object.entries(
|
||||
piniaState.prefsStorage.simple.notificationNative ||
|
||||
instanceDefaultConfig.notificationNative,
|
||||
INSTANCE_DEFAULT_CONFIG.notificationNative,
|
||||
)
|
||||
state.webPushAlwaysShowNotifications =
|
||||
piniaState.prefsStorage.simple.webPushAlwaysShowNotifications
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue