mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-02-09 08:18:44 +01:00
Remove mentions marker in settings
This commit is contained in:
parent
04467896df
commit
058a0ffb70
@ -4,7 +4,7 @@ import { createStore, Store } from 'vuex'
|
||||
import { ipcMain, ipcRenderer } from '~/spec/mock/electron'
|
||||
import TimelineSpace, { TimelineSpaceState, blankAccount } from '~/src/renderer/store/TimelineSpace'
|
||||
import { MyWindow } from '~/src/types/global'
|
||||
;(window as any as MyWindow).ipcRenderer = ipcRenderer
|
||||
;((window as any) as MyWindow).ipcRenderer = ipcRenderer
|
||||
|
||||
const emacsEmoji: Entity.Emoji = {
|
||||
shortcode: 'emacs',
|
||||
@ -86,8 +86,7 @@ const state = (): TimelineSpaceState => {
|
||||
},
|
||||
useMarker: {
|
||||
home: false,
|
||||
notifications: true,
|
||||
mentions: false
|
||||
notifications: true
|
||||
}
|
||||
},
|
||||
sns: 'mastodon',
|
||||
|
@ -116,8 +116,7 @@
|
||||
"use_marker": {
|
||||
"title": "Load the timeline from the last reading position",
|
||||
"home": "Home",
|
||||
"notifications": "Notifications",
|
||||
"mentions": "Mentions"
|
||||
"notifications": "Notifications"
|
||||
}
|
||||
},
|
||||
"filters": {
|
||||
|
@ -8,8 +8,7 @@ const unreadNotification: UnreadNotification = {
|
||||
|
||||
const useMarker: UseMarker = {
|
||||
home: false,
|
||||
notifications: true,
|
||||
mentions: false
|
||||
notifications: true
|
||||
}
|
||||
|
||||
const timeline: Timeline = {
|
||||
|
@ -26,9 +26,6 @@
|
||||
<el-form-item for="marker_notifications" :label="$t('settings.timeline.use_marker.notifications')">
|
||||
<el-switch v-model="marker_notifications" id="marker_notifications" />
|
||||
</el-form-item>
|
||||
<el-form-item for="marker_mentions" :label="$t('settings.timeline.use_marker.mentions')">
|
||||
<el-switch v-model="marker_mentions" id="marker_mentions" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</template>
|
||||
@ -79,13 +76,6 @@ export default defineComponent({
|
||||
notifications: value
|
||||
})
|
||||
})
|
||||
const marker_mentions = computed({
|
||||
get: () => store.state.Settings.Timeline.setting.useMarker.mentions,
|
||||
set: value =>
|
||||
store.dispatch(`${space}/${ACTION_TYPES.CHANGE_USER_MARKER}`, {
|
||||
mentions: value
|
||||
})
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
store.dispatch(`${space}/${ACTION_TYPES.LOAD_TIMELINE_SETTING}`)
|
||||
@ -96,8 +86,7 @@ export default defineComponent({
|
||||
localNotify,
|
||||
publicNotify,
|
||||
marker_home,
|
||||
marker_notifications,
|
||||
marker_mentions
|
||||
marker_notifications
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -3,15 +3,15 @@
|
||||
<div></div>
|
||||
<DynamicScroller :items="mentions" :min-item-size="86" id="scroller" class="scroller" ref="scroller">
|
||||
<template v-slot="{ item, index, active }">
|
||||
<DynamicScrollerItem :item="item" :active="active" :size-dependencies="[item.url]" :data-index="index" :watchData="true">
|
||||
<DynamicScrollerItem :item="item" :active="active" :size-dependencies="[item.url]" :data-index="index" :watch-data="true">
|
||||
<notification
|
||||
:message="item"
|
||||
:focused="item.id === focusedId"
|
||||
:overlaid="modalOpened"
|
||||
:filters="[]"
|
||||
v-on:update="updateToot"
|
||||
@focusRight="focusSidebar"
|
||||
@selectNotification="focusNotification(item)"
|
||||
@update="updateToot"
|
||||
@focus-right="focusSidebar"
|
||||
@select-notification="focusNotification(item)"
|
||||
>
|
||||
</notification>
|
||||
</DynamicScrollerItem>
|
||||
|
@ -7,7 +7,6 @@ export type UnreadNotification = {
|
||||
export type UseMarker = {
|
||||
home: boolean
|
||||
notifications: boolean
|
||||
mentions: boolean
|
||||
}
|
||||
|
||||
export type Timeline = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user