Remove mentions marker in settings

This commit is contained in:
AkiraFukushima 2022-12-18 11:54:41 +09:00
parent 04467896df
commit 058a0ffb70
No known key found for this signature in database
GPG Key ID: B6E51BAC4DE1A957
6 changed files with 9 additions and 24 deletions

View File

@ -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',

View File

@ -116,8 +116,7 @@
"use_marker": {
"title": "Load the timeline from the last reading position",
"home": "Home",
"notifications": "Notifications",
"mentions": "Mentions"
"notifications": "Notifications"
}
},
"filters": {

View File

@ -8,8 +8,7 @@ const unreadNotification: UnreadNotification = {
const useMarker: UseMarker = {
home: false,
notifications: true,
mentions: false
notifications: true
}
const timeline: Timeline = {

View File

@ -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
}
}
})

View File

@ -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>

View File

@ -7,7 +7,6 @@ export type UnreadNotification = {
export type UseMarker = {
home: boolean
notifications: boolean
mentions: boolean
}
export type Timeline = {