Add option to view only notifications

This commit is contained in:
Omar Roth 2018-07-31 10:44:07 -05:00
parent 9b8a884ff8
commit b1b2713546
3 changed files with 107 additions and 69 deletions

View file

@ -176,10 +176,15 @@ class Preferences
nilable: true,
default: false,
},
max_results: Int32,
sort: String,
latest_only: Bool,
unseen_only: Bool,
max_results: Int32,
sort: String,
latest_only: Bool,
unseen_only: Bool,
notifications_only: {
type: Bool,
nilable: true,
default: false,
},
})
end

View file

@ -97,6 +97,11 @@ function update_value(element) {
<input name="unseen_only" id="unseen_only" type="checkbox" <% if user.preferences.unseen_only %>checked<% end %>>
</div>
<div class="pure-control-group">
<label for="notifications_only">Only show notifications: </label>
<input name="notifications_only" id="notifications_only" type="checkbox" <% if user.preferences.notifications_only %>checked<% end %>>
</div>
<legend>Data preferences</legend>
<div class="pure-control-group">
<label>