forked from Archives/Athou_commafeed
add setting to disable mark as read confirmation (#1110)
This commit is contained in:
@@ -91,6 +91,17 @@ export const changeAlwaysScrollToEntry = createAsyncThunk<
|
|||||||
if (!settings) return
|
if (!settings) return
|
||||||
client.user.saveSettings({ ...settings, alwaysScrollToEntry })
|
client.user.saveSettings({ ...settings, alwaysScrollToEntry })
|
||||||
})
|
})
|
||||||
|
export const changeMarkAllAsReadConfirmation = createAsyncThunk<
|
||||||
|
void,
|
||||||
|
boolean,
|
||||||
|
{
|
||||||
|
state: RootState
|
||||||
|
}
|
||||||
|
>("settings/markAllAsReadConfirmation", (markAllAsReadConfirmation, thunkApi) => {
|
||||||
|
const { settings } = thunkApi.getState().user
|
||||||
|
if (!settings) return
|
||||||
|
client.user.saveSettings({ ...settings, markAllAsReadConfirmation })
|
||||||
|
})
|
||||||
export const changeSharingSetting = createAsyncThunk<
|
export const changeSharingSetting = createAsyncThunk<
|
||||||
void,
|
void,
|
||||||
{ site: keyof SharingSettings; value: boolean },
|
{ site: keyof SharingSettings; value: boolean },
|
||||||
@@ -151,6 +162,10 @@ export const userSlice = createSlice({
|
|||||||
if (!state.settings) return
|
if (!state.settings) return
|
||||||
state.settings.alwaysScrollToEntry = action.meta.arg
|
state.settings.alwaysScrollToEntry = action.meta.arg
|
||||||
})
|
})
|
||||||
|
builder.addCase(changeMarkAllAsReadConfirmation.pending, (state, action) => {
|
||||||
|
if (!state.settings) return
|
||||||
|
state.settings.markAllAsReadConfirmation = action.meta.arg
|
||||||
|
})
|
||||||
builder.addCase(changeSharingSetting.pending, (state, action) => {
|
builder.addCase(changeSharingSetting.pending, (state, action) => {
|
||||||
if (!state.settings) return
|
if (!state.settings) return
|
||||||
state.settings.sharingSettings[action.meta.arg.site] = action.meta.arg.value
|
state.settings.sharingSettings[action.meta.arg.site] = action.meta.arg.value
|
||||||
@@ -162,6 +177,7 @@ export const userSlice = createSlice({
|
|||||||
changeShowRead.fulfilled,
|
changeShowRead.fulfilled,
|
||||||
changeScrollMarks.fulfilled,
|
changeScrollMarks.fulfilled,
|
||||||
changeAlwaysScrollToEntry.fulfilled,
|
changeAlwaysScrollToEntry.fulfilled,
|
||||||
|
changeMarkAllAsReadConfirmation.fulfilled,
|
||||||
changeSharingSetting.fulfilled
|
changeSharingSetting.fulfilled
|
||||||
),
|
),
|
||||||
() => {
|
() => {
|
||||||
|
|||||||
@@ -202,6 +202,7 @@ export interface Settings {
|
|||||||
customJs?: string
|
customJs?: string
|
||||||
scrollSpeed: number
|
scrollSpeed: number
|
||||||
alwaysScrollToEntry: boolean
|
alwaysScrollToEntry: boolean
|
||||||
|
markAllAsReadConfirmation: boolean
|
||||||
sharingSettings: SharingSettings
|
sharingSettings: SharingSettings
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,8 +13,27 @@ export function MarkAllAsReadButton(props: { iconSize: number }) {
|
|||||||
const source = useAppSelector(state => state.entries.source)
|
const source = useAppSelector(state => state.entries.source)
|
||||||
const sourceLabel = useAppSelector(state => state.entries.sourceLabel)
|
const sourceLabel = useAppSelector(state => state.entries.sourceLabel)
|
||||||
const entriesTimestamp = useAppSelector(state => state.entries.timestamp) ?? Date.now()
|
const entriesTimestamp = useAppSelector(state => state.entries.timestamp) ?? Date.now()
|
||||||
|
const markAllAsReadConfirmation = useAppSelector(state => state.user.settings?.markAllAsReadConfirmation)
|
||||||
const dispatch = useAppDispatch()
|
const dispatch = useAppDispatch()
|
||||||
|
|
||||||
|
const buttonClicked = () => {
|
||||||
|
if (markAllAsReadConfirmation) {
|
||||||
|
setThreshold(0)
|
||||||
|
setOpened(true)
|
||||||
|
} else {
|
||||||
|
dispatch(
|
||||||
|
markAllEntries({
|
||||||
|
sourceType: source.type,
|
||||||
|
req: {
|
||||||
|
id: source.id,
|
||||||
|
read: true,
|
||||||
|
olderThan: entriesTimestamp,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Modal opened={opened} onClose={() => setOpened(false)} title={<Trans>Mark all entries as read</Trans>}>
|
<Modal opened={opened} onClose={() => setOpened(false)} title={<Trans>Mark all entries as read</Trans>}>
|
||||||
@@ -70,14 +89,7 @@ export function MarkAllAsReadButton(props: { iconSize: number }) {
|
|||||||
</Group>
|
</Group>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Modal>
|
</Modal>
|
||||||
<ActionButton
|
<ActionButton icon={<TbChecks size={props.iconSize} />} label={<Trans>Mark all as read</Trans>} onClick={buttonClicked} />
|
||||||
icon={<TbChecks size={props.iconSize} />}
|
|
||||||
label={<Trans>Mark all as read</Trans>}
|
|
||||||
onClick={() => {
|
|
||||||
setThreshold(0)
|
|
||||||
setOpened(true)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { Constants } from "app/constants"
|
|||||||
import {
|
import {
|
||||||
changeAlwaysScrollToEntry,
|
changeAlwaysScrollToEntry,
|
||||||
changeLanguage,
|
changeLanguage,
|
||||||
|
changeMarkAllAsReadConfirmation,
|
||||||
changeScrollMarks,
|
changeScrollMarks,
|
||||||
changeScrollSpeed,
|
changeScrollSpeed,
|
||||||
changeSharingSetting,
|
changeSharingSetting,
|
||||||
@@ -19,6 +20,7 @@ export function DisplaySettings() {
|
|||||||
const showRead = useAppSelector(state => state.user.settings?.showRead)
|
const showRead = useAppSelector(state => state.user.settings?.showRead)
|
||||||
const scrollMarks = useAppSelector(state => state.user.settings?.scrollMarks)
|
const scrollMarks = useAppSelector(state => state.user.settings?.scrollMarks)
|
||||||
const alwaysScrollToEntry = useAppSelector(state => state.user.settings?.alwaysScrollToEntry)
|
const alwaysScrollToEntry = useAppSelector(state => state.user.settings?.alwaysScrollToEntry)
|
||||||
|
const markAllAsReadConfirmation = useAppSelector(state => state.user.settings?.markAllAsReadConfirmation)
|
||||||
const sharingSettings = useAppSelector(state => state.user.settings?.sharingSettings)
|
const sharingSettings = useAppSelector(state => state.user.settings?.sharingSettings)
|
||||||
const dispatch = useAppDispatch()
|
const dispatch = useAppDispatch()
|
||||||
|
|
||||||
@@ -58,6 +60,12 @@ export function DisplaySettings() {
|
|||||||
onChange={e => dispatch(changeScrollMarks(e.currentTarget.checked))}
|
onChange={e => dispatch(changeScrollMarks(e.currentTarget.checked))}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<Switch
|
||||||
|
label={<Trans>Show confirmation when marking all entries as read</Trans>}
|
||||||
|
checked={markAllAsReadConfirmation}
|
||||||
|
onChange={e => dispatch(changeMarkAllAsReadConfirmation(e.currentTarget.checked))}
|
||||||
|
/>
|
||||||
|
|
||||||
<Divider label={<Trans>Sharing sites</Trans>} labelPosition="center" />
|
<Divider label={<Trans>Sharing sites</Trans>} labelPosition="center" />
|
||||||
|
|
||||||
<SimpleGrid cols={2}>
|
<SimpleGrid cols={2}>
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "مشاركة المواقع"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "الحلقة"
|
msgstr "الحلقة"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Compartir llocs"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "canvi"
|
msgstr "canvi"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Stránky pro sdílení"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "Směna"
|
msgstr "Směna"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Rhannu gwefannau"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "shifft"
|
msgstr "shifft"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Delingssider"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "Skift"
|
msgstr "Skift"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Seiten teilen"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "Verschiebung"
|
msgstr "Verschiebung"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Sharing sites"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "Shift"
|
msgstr "Shift"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr "Show confirmation when marking all entries as read"
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr "Show entry menu (desktop)"
|
msgstr "Show entry menu (desktop)"
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Compartir sitios"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "Cambio"
|
msgstr "Cambio"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "اشتراک گذاری سایت ها"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "شیفت"
|
msgstr "شیفت"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Sivustojen jakaminen"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "Vaihto"
|
msgstr "Vaihto"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Sites de partage"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "Maj"
|
msgstr "Maj"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr "Afficher les options de l'entrée (ordinateur)"
|
msgstr "Afficher les options de l'entrée (ordinateur)"
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Compartir sitios"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "quendas"
|
msgstr "quendas"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Webhelyek megosztása"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Berbagi situs"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "Pergeseran"
|
msgstr "Pergeseran"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Condivisione di siti"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "Cambio"
|
msgstr "Cambio"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "共有サイト"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "シフト"
|
msgstr "シフト"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "사이트 공유"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "시프트"
|
msgstr "시프트"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Berkongsi tapak"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "Anjakan"
|
msgstr "Anjakan"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Delingssider"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "Skift"
|
msgstr "Skift"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Sites delen"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Delingssider"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "Skift"
|
msgstr "Skift"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Udostępnianie witryn"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "zmiana"
|
msgstr "zmiana"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Compartilhando sites"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "Mudar"
|
msgstr "Mudar"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Обмен сайтами"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "Сдвиг"
|
msgstr "Сдвиг"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Zdieľanie stránok"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "Smena"
|
msgstr "Smena"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Delningssajter"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "Skift"
|
msgstr "Skift"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "Siteleri paylaşma"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "Vardiya"
|
msgstr "Vardiya"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -727,6 +727,10 @@ msgstr "共享站点"
|
|||||||
msgid "Shift"
|
msgid "Shift"
|
||||||
msgstr "换档"
|
msgstr "换档"
|
||||||
|
|
||||||
|
#: src/components/settings/DisplaySettings.tsx
|
||||||
|
msgid "Show confirmation when marking all entries as read"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/KeyboardShortcutsHelp.tsx
|
#: src/components/KeyboardShortcutsHelp.tsx
|
||||||
msgid "Show entry menu (desktop)"
|
msgid "Show entry menu (desktop)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ public class UserSettings extends AbstractModel {
|
|||||||
private int scrollSpeed;
|
private int scrollSpeed;
|
||||||
|
|
||||||
private boolean alwaysScrollToEntry;
|
private boolean alwaysScrollToEntry;
|
||||||
|
private boolean markAllAsReadConfirmation;
|
||||||
|
|
||||||
private boolean email;
|
private boolean email;
|
||||||
private boolean gmail;
|
private boolean gmail;
|
||||||
|
|||||||
@@ -38,6 +38,9 @@ public class Settings implements Serializable {
|
|||||||
@ApiModelProperty(value = "always scroll selected entry to the top of the page, even if it fits entirely on screen", required = true)
|
@ApiModelProperty(value = "always scroll selected entry to the top of the page, even if it fits entirely on screen", required = true)
|
||||||
private boolean alwaysScrollToEntry;
|
private boolean alwaysScrollToEntry;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "ask for confirmation when marking all entries as read", required = true)
|
||||||
|
private boolean markAllAsReadConfirmation;
|
||||||
|
|
||||||
@ApiModelProperty(value = "sharing settings", required = true)
|
@ApiModelProperty(value = "sharing settings", required = true)
|
||||||
private SharingSettings sharingSettings = new SharingSettings();
|
private SharingSettings sharingSettings = new SharingSettings();
|
||||||
|
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ public class UserREST {
|
|||||||
s.setLanguage(settings.getLanguage());
|
s.setLanguage(settings.getLanguage());
|
||||||
s.setScrollSpeed(settings.getScrollSpeed());
|
s.setScrollSpeed(settings.getScrollSpeed());
|
||||||
s.setAlwaysScrollToEntry(settings.isAlwaysScrollToEntry());
|
s.setAlwaysScrollToEntry(settings.isAlwaysScrollToEntry());
|
||||||
|
s.setMarkAllAsReadConfirmation(settings.isMarkAllAsReadConfirmation());
|
||||||
} else {
|
} else {
|
||||||
s.setReadingMode(ReadingMode.unread.name());
|
s.setReadingMode(ReadingMode.unread.name());
|
||||||
s.setReadingOrder(ReadingOrder.desc.name());
|
s.setReadingOrder(ReadingOrder.desc.name());
|
||||||
@@ -122,6 +123,7 @@ public class UserREST {
|
|||||||
s.setLanguage("en");
|
s.setLanguage("en");
|
||||||
s.setScrollSpeed(400);
|
s.setScrollSpeed(400);
|
||||||
s.setAlwaysScrollToEntry(false);
|
s.setAlwaysScrollToEntry(false);
|
||||||
|
s.setMarkAllAsReadConfirmation(true);
|
||||||
}
|
}
|
||||||
return Response.ok(s).build();
|
return Response.ok(s).build();
|
||||||
}
|
}
|
||||||
@@ -148,6 +150,7 @@ public class UserREST {
|
|||||||
s.setLanguage(settings.getLanguage());
|
s.setLanguage(settings.getLanguage());
|
||||||
s.setScrollSpeed(settings.getScrollSpeed());
|
s.setScrollSpeed(settings.getScrollSpeed());
|
||||||
s.setAlwaysScrollToEntry(settings.isAlwaysScrollToEntry());
|
s.setAlwaysScrollToEntry(settings.isAlwaysScrollToEntry());
|
||||||
|
s.setMarkAllAsReadConfirmation(settings.isMarkAllAsReadConfirmation());
|
||||||
|
|
||||||
s.setEmail(settings.getSharingSettings().isEmail());
|
s.setEmail(settings.getSharingSettings().isEmail());
|
||||||
s.setGmail(settings.getSharingSettings().isGmail());
|
s.setGmail(settings.getSharingSettings().isGmail());
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
|
||||||
|
|
||||||
|
<changeSet id="mark-all-as-read-confirmation" author="athou">
|
||||||
|
<addColumn tableName="USERSETTINGS">
|
||||||
|
<column name="markAllAsReadConfirmation" type="BOOLEAN" defaultValueBoolean="true">
|
||||||
|
<constraints nullable="false" />
|
||||||
|
</column>
|
||||||
|
</addColumn>
|
||||||
|
</changeSet>
|
||||||
|
|
||||||
|
</databaseChangeLog>
|
||||||
@@ -21,5 +21,6 @@
|
|||||||
<include file="changelogs/db.changelog-3.5.xml" />
|
<include file="changelogs/db.changelog-3.5.xml" />
|
||||||
<include file="changelogs/db.changelog-3.6.xml" />
|
<include file="changelogs/db.changelog-3.6.xml" />
|
||||||
<include file="changelogs/db.changelog-3.8.xml" />
|
<include file="changelogs/db.changelog-3.8.xml" />
|
||||||
|
<include file="changelogs/db.changelog-3.9.xml" />
|
||||||
|
|
||||||
</databaseChangeLog>
|
</databaseChangeLog>
|
||||||
Reference in New Issue
Block a user