mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-13 21:40:45 +01:00
add toggle for "only with files"
This commit is contained in:
parent
2fbb697bf9
commit
21b935aa78
1 changed files with 12 additions and 0 deletions
|
@ -205,6 +205,7 @@ const latestNotesPagination: Paging<'notes/following'> = {
|
|||
|
||||
const withUserRenotes = ref(false);
|
||||
const withUserReplies = ref(true);
|
||||
const withOnlyFiles = ref(false);
|
||||
const userNotesPagination: Paging<'users/notes'> = {
|
||||
endpoint: 'users/notes' as const,
|
||||
limit: 10,
|
||||
|
@ -212,6 +213,7 @@ const userNotesPagination: Paging<'users/notes'> = {
|
|||
userId: selectedUserId.value,
|
||||
withRenotes: withUserRenotes.value,
|
||||
withReplies: withUserReplies.value,
|
||||
withFiles: withOnlyFiles.value,
|
||||
})),
|
||||
};
|
||||
|
||||
|
@ -234,6 +236,16 @@ const headerActions = computed(() => isWideViewport.value ? [
|
|||
type: 'switch',
|
||||
text: i18n.ts.showRepliesToOthersInTimeline,
|
||||
ref: withUserReplies,
|
||||
disabled: withOnlyFiles,
|
||||
},
|
||||
{
|
||||
type: 'divider',
|
||||
},
|
||||
{
|
||||
type: 'switch',
|
||||
text: i18n.ts.fileAttachedOnly,
|
||||
ref: withOnlyFiles,
|
||||
disabled: withUserReplies,
|
||||
},
|
||||
], ev.currentTarget ?? ev.target);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue