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 { ipcMain, ipcRenderer } from '~/spec/mock/electron'
|
||||||
import TimelineSpace, { TimelineSpaceState, blankAccount } from '~/src/renderer/store/TimelineSpace'
|
import TimelineSpace, { TimelineSpaceState, blankAccount } from '~/src/renderer/store/TimelineSpace'
|
||||||
import { MyWindow } from '~/src/types/global'
|
import { MyWindow } from '~/src/types/global'
|
||||||
;(window as any as MyWindow).ipcRenderer = ipcRenderer
|
;((window as any) as MyWindow).ipcRenderer = ipcRenderer
|
||||||
|
|
||||||
const emacsEmoji: Entity.Emoji = {
|
const emacsEmoji: Entity.Emoji = {
|
||||||
shortcode: 'emacs',
|
shortcode: 'emacs',
|
||||||
@ -86,8 +86,7 @@ const state = (): TimelineSpaceState => {
|
|||||||
},
|
},
|
||||||
useMarker: {
|
useMarker: {
|
||||||
home: false,
|
home: false,
|
||||||
notifications: true,
|
notifications: true
|
||||||
mentions: false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
sns: 'mastodon',
|
sns: 'mastodon',
|
||||||
|
@ -116,8 +116,7 @@
|
|||||||
"use_marker": {
|
"use_marker": {
|
||||||
"title": "Load the timeline from the last reading position",
|
"title": "Load the timeline from the last reading position",
|
||||||
"home": "Home",
|
"home": "Home",
|
||||||
"notifications": "Notifications",
|
"notifications": "Notifications"
|
||||||
"mentions": "Mentions"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"filters": {
|
"filters": {
|
||||||
|
@ -8,8 +8,7 @@ const unreadNotification: UnreadNotification = {
|
|||||||
|
|
||||||
const useMarker: UseMarker = {
|
const useMarker: UseMarker = {
|
||||||
home: false,
|
home: false,
|
||||||
notifications: true,
|
notifications: true
|
||||||
mentions: false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const timeline: Timeline = {
|
const timeline: Timeline = {
|
||||||
|
@ -26,9 +26,6 @@
|
|||||||
<el-form-item for="marker_notifications" :label="$t('settings.timeline.use_marker.notifications')">
|
<el-form-item for="marker_notifications" :label="$t('settings.timeline.use_marker.notifications')">
|
||||||
<el-switch v-model="marker_notifications" id="marker_notifications" />
|
<el-switch v-model="marker_notifications" id="marker_notifications" />
|
||||||
</el-form-item>
|
</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>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -79,13 +76,6 @@ export default defineComponent({
|
|||||||
notifications: value
|
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(() => {
|
onMounted(() => {
|
||||||
store.dispatch(`${space}/${ACTION_TYPES.LOAD_TIMELINE_SETTING}`)
|
store.dispatch(`${space}/${ACTION_TYPES.LOAD_TIMELINE_SETTING}`)
|
||||||
@ -96,8 +86,7 @@ export default defineComponent({
|
|||||||
localNotify,
|
localNotify,
|
||||||
publicNotify,
|
publicNotify,
|
||||||
marker_home,
|
marker_home,
|
||||||
marker_notifications,
|
marker_notifications
|
||||||
marker_mentions
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -3,15 +3,15 @@
|
|||||||
<div></div>
|
<div></div>
|
||||||
<DynamicScroller :items="mentions" :min-item-size="86" id="scroller" class="scroller" ref="scroller">
|
<DynamicScroller :items="mentions" :min-item-size="86" id="scroller" class="scroller" ref="scroller">
|
||||||
<template v-slot="{ item, index, active }">
|
<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
|
<notification
|
||||||
:message="item"
|
:message="item"
|
||||||
:focused="item.id === focusedId"
|
:focused="item.id === focusedId"
|
||||||
:overlaid="modalOpened"
|
:overlaid="modalOpened"
|
||||||
:filters="[]"
|
:filters="[]"
|
||||||
v-on:update="updateToot"
|
@update="updateToot"
|
||||||
@focusRight="focusSidebar"
|
@focus-right="focusSidebar"
|
||||||
@selectNotification="focusNotification(item)"
|
@select-notification="focusNotification(item)"
|
||||||
>
|
>
|
||||||
</notification>
|
</notification>
|
||||||
</DynamicScrollerItem>
|
</DynamicScrollerItem>
|
||||||
|
@ -7,7 +7,6 @@ export type UnreadNotification = {
|
|||||||
export type UseMarker = {
|
export type UseMarker = {
|
||||||
home: boolean
|
home: boolean
|
||||||
notifications: boolean
|
notifications: boolean
|
||||||
mentions: boolean
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Timeline = {
|
export type Timeline = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user