Compare commits
5 commits
6592955a28
...
1aedd8f16d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1aedd8f16d | ||
|
|
45771001e6 | ||
|
|
bf8a4bdbe4 | ||
|
|
e775098da8 | ||
|
|
5785bb850d |
3 changed files with 12 additions and 12 deletions
|
|
@ -4,6 +4,7 @@ import Popover from '../popover/popover.vue'
|
|||
|
||||
import { useInterfaceStore } from 'src/stores/interface.js'
|
||||
import { useSyncConfigStore } from 'src/stores/sync_config.js'
|
||||
import { useLocalConfigStore } from 'src/stores/local_config.js'
|
||||
|
||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||
import { faFilter, faFont, faWrench } from '@fortawesome/free-solid-svg-icons'
|
||||
|
|
@ -85,13 +86,12 @@ const QuickFilterSettings = {
|
|||
this.mergedConfig.hideAttachmentsInConv
|
||||
)
|
||||
},
|
||||
set() {
|
||||
const value = !this.hideMedia
|
||||
useSyncConfigStore().setSimplePrefAndSave({
|
||||
set(value) {
|
||||
useLocalConfigStore().set({
|
||||
path: 'hideAttachments',
|
||||
value,
|
||||
})
|
||||
useSyncConfigStore().setSimplePrefAndSave({
|
||||
useLocalConfigStore().set({
|
||||
path: 'hideAttachmentsInConv',
|
||||
value,
|
||||
})
|
||||
|
|
@ -101,8 +101,7 @@ const QuickFilterSettings = {
|
|||
get() {
|
||||
return this.mergedConfig.hideFilteredStatuses
|
||||
},
|
||||
set() {
|
||||
const value = !this.hideMutedPosts
|
||||
set(value) {
|
||||
useSyncConfigStore().setSimplePrefAndSave({
|
||||
path: 'hideFilteredStatuses',
|
||||
value,
|
||||
|
|
@ -113,8 +112,7 @@ const QuickFilterSettings = {
|
|||
get() {
|
||||
return this.mergedConfig.muteBotStatuses
|
||||
},
|
||||
set() {
|
||||
const value = !this.muteBotStatuses
|
||||
set(value) {
|
||||
useSyncConfigStore().setSimplePrefAndSave({
|
||||
path: 'muteBotStatuses',
|
||||
value,
|
||||
|
|
@ -125,8 +123,7 @@ const QuickFilterSettings = {
|
|||
get() {
|
||||
return this.mergedConfig.muteSensitiveStatuses
|
||||
},
|
||||
set() {
|
||||
const value = !this.muteSensitiveStatuses
|
||||
set(value) {
|
||||
useSyncConfigStore().setSimplePrefAndSave({
|
||||
path: 'muteSensitiveStatuses',
|
||||
value,
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ const FilteringTab = {
|
|||
computed: {
|
||||
...SharedComputedObject(),
|
||||
...mapState(useSyncConfigStore, {
|
||||
muteFilters: (store) => Object.entries(store.prefsStorage.simple.muteFilters),
|
||||
muteFiltersObject: (store) => store.prefsStorage.simple.muteFilters,
|
||||
}),
|
||||
...mapState(useInstanceCapabilitiesStore, ['blockExpiration']),
|
||||
|
|
@ -246,7 +247,7 @@ const FilteringTab = {
|
|||
this.muteFiltersDraftDirty[id] = true
|
||||
},
|
||||
saveFilter(id) {
|
||||
this.setPrefAndSave({
|
||||
this.setSimplePrefAndSave({
|
||||
path: 'muteFilters.' + id,
|
||||
value: this.muteFiltersDraftObject[id],
|
||||
})
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import { storage } from 'src/lib/storage.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'
|
||||
import { instanceDefaultConfig } from 'src/modules/default_config_state.js'
|
||||
|
||||
// Collects all messages for service workers
|
||||
// Needed because service workers cannot use dynamic imports
|
||||
|
|
@ -38,7 +39,8 @@ const setSettings = async () => {
|
|||
const locale = piniaState.prefsStorage.simple.interfaceLanguage || 'en'
|
||||
i18n.locale = locale
|
||||
const notificationsNativeArray = Object.entries(
|
||||
piniaState.prefsStorage.simple.notificationNative,
|
||||
piniaState.prefsStorage.simple.notificationNative ||
|
||||
instanceDefaultConfig.notificationNative,
|
||||
)
|
||||
state.webPushAlwaysShowNotifications =
|
||||
piniaState.prefsStorage.simple.webPushAlwaysShowNotifications
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue