Pinafore-Web-Client-Frontend/src/routes/_components/settings/instance/NotificationFilterSettings....

51 lines
1.1 KiB
HTML

<GenericInstanceSettings
{instanceName}
{options}
label="{intl.notificationFilterSettings}"
/>
<script>
import GenericInstanceSettings from './GenericInstanceSettings.html'
import {
NOTIFICATION_REBLOGS,
NOTIFICATION_FAVORITES,
NOTIFICATION_FOLLOWS,
NOTIFICATION_MENTIONS,
NOTIFICATION_POLLS
} from '../../../_static/instanceSettings'
export default {
data: () => ({
options: [
{
key: NOTIFICATION_FOLLOWS,
label: 'intl.newFollowers',
defaultValue: true
},
{
key: NOTIFICATION_FAVORITES,
label: 'intl.favorites',
defaultValue: true
},
{
key: NOTIFICATION_REBLOGS,
label: 'intl.reblogs',
defaultValue: true
},
{
key: NOTIFICATION_MENTIONS,
label: 'intl.mentions',
defaultValue: true
},
{
key: NOTIFICATION_POLLS,
label: 'intl.pollResults',
defaultValue: true
}
]
}),
components: {
GenericInstanceSettings
}
}
</script>