Merge remote-tracking branch 'kamal/enhancements/snort#702'

This commit is contained in:
2024-01-11 09:38:50 +00:00
4 changed files with 31 additions and 2 deletions

View File

@ -474,6 +474,23 @@ const PreferencesPage = () => {
/>
</div>
</div>
<div className="flex justify-between">
<div className="flex flex-col g8">
<h4>
<FormattedMessage {...messages.HideMutedNotes} />
</h4>
<small>
<FormattedMessage {...messages.HideMutedNotesHelp} />
</small>
</div>
<div>
<input
type="checkbox"
checked={perf.hideMutedNotes}
onChange={e => updatePreferences(id, { ...perf, hideMutedNotes: e.target.checked })}
/>
</div>
</div>
</div>
);
};

View File

@ -76,4 +76,9 @@ export default defineMessages({
ServiceWorkerNotRunning: { defaultMessage: "Service Worker Not Running", id: "RDha9y" },
SubscribedToPush: { defaultMessage: "Subscribed to Push", id: "G3A56c" },
NotSubscribedToPush: { defaultMessage: "Not Subscribed to Push", id: "d2ebEu" },
HideMutedNotes: { defaultMessage: "Hide Muted Notes", id: "M3Oira" },
HideMutedNotesHelp: {
defaultMessage: "Muted notes will not be shown",
id: "MBAYRA",
},
});