merge: put back buttons "show/hide replies-to-others from all" (!1009)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1009 Approved-by: Hazelnoot <acomputerdog@gmail.com> Approved-by: Marie <github@yuugi.dev>
This commit is contained in:
commit
4dc82cad62
1 changed files with 14 additions and 0 deletions
|
@ -814,6 +814,10 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<template #label><SearchLabel>{{ i18n.ts.withRepliesByDefaultForNewlyFollowed }}</SearchLabel></template>
|
||||
</MkSwitch>
|
||||
</MkPreferenceContainer>
|
||||
<div class="_buttons">
|
||||
<MkButton danger @click="updateRepliesAll(true)"><i class="ph-chats ph-bold ph-lg"></i> {{ i18n.ts.showRepliesToOthersInTimelineAll }}</MkButton>
|
||||
<MkButton danger @click="updateRepliesAll(false)"><i class="ph-chat ph-bold ph-lg"></i> {{ i18n.ts.hideRepliesToOthersInTimelineAll }}</MkButton>
|
||||
</div>
|
||||
</SearchMarker>
|
||||
</div>
|
||||
|
||||
|
@ -1218,6 +1222,16 @@ async function testNotificationDot() {
|
|||
}
|
||||
}
|
||||
|
||||
async function updateRepliesAll(withReplies: boolean) {
|
||||
const { canceled } = await os.confirm({
|
||||
type: 'warning',
|
||||
text: withReplies ? i18n.ts.confirmShowRepliesAll : i18n.ts.confirmHideRepliesAll,
|
||||
});
|
||||
if (canceled) return;
|
||||
|
||||
misskeyApi('following/update-all', { withReplies });
|
||||
}
|
||||
|
||||
function save() {
|
||||
misskeyApi('i/update', {
|
||||
defaultCWPriority: defaultCWPriority.value,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue