discourse-solved-reminders-.../assets/javascripts/discourse/connectors/user-preferences-notifications/solutions-notification-preferences-container.gjs
Arpit Jalan 3f48771b43
Some checks failed
Discourse Plugin / ci (push) Has been cancelled
Clean up solved reminders plugin (#47)
2026-05-26 13:59:49 +05:30

24 lines
948 B
Text

import Component from "@glimmer/component";
import PreferenceCheckbox from "discourse/components/preference-checkbox";
import { i18n } from "discourse-i18n";
export default class SolutionsNotificationPreferencesContainer extends Component {
static shouldRender(_args, { siteSettings }) {
return siteSettings.solved_reminders_plugin_enabled;
}
<template>
<div class="control-group solved-reminders-notifications">
<label class="control-label">{{i18n
"discourse_solved_reminders.notifications.label"
}}</label>
<PreferenceCheckbox
@labelKey="discourse_solved_reminders.notifications.dont_send_accepted_solution_notifications"
@checked={{@outletArgs.model.custom_fields.dont_send_accepted_solution_notifications}}
data-setting-name="user-dont-send-accepted-solution-notifications"
class="pref-dont-send-accepted-solution-notifications"
/>
</div>
</template>
}