nicolium: disable show self-reblogs switch when show reblogs is disabled
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -59,7 +59,7 @@ const useTimelineFiltersOptions = (
|
||||
return useMemo(() => {
|
||||
const items: Menu = [];
|
||||
|
||||
if (timeline == 'home') {
|
||||
if (timeline === 'home') {
|
||||
items.push({
|
||||
text: intl.formatMessage(messages.showReblogs),
|
||||
type: 'toggle',
|
||||
@ -70,6 +70,7 @@ const useTimelineFiltersOptions = (
|
||||
text: intl.formatMessage(messages.showSelfReblogs),
|
||||
type: 'toggle',
|
||||
checked: timelineSettings?.showSelfReblogs,
|
||||
disabled: !timelineSettings?.showReblogs,
|
||||
onChange: (checked) => changeSetting(['timelines', timeline, 'showSelfReblogs'], checked),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user