FIX: Site Settings weirdness with back button

This commit is contained in:
Robin Ward 2017-03-21 16:13:19 -04:00
parent 874e8900af
commit 1cd14ef3aa
3 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,6 @@
import debounce from 'discourse/lib/debounce';
export default Ember.Controller.extend({
queryParams: ["filter"],
filter: null,
onlyOverridden: false,
filtered: Ember.computed.notEmpty('filter'),

View File

@ -1,6 +1,10 @@
import SiteSetting from 'admin/models/site-setting';
export default Discourse.Route.extend({
queryParams: {
filter: { replace: true }
},
model() {
return SiteSetting.findAll();
},

View File

@ -53,7 +53,7 @@ export default createWidget('hamburger-menu', {
}
if (currentUser.admin) {
links.push({ route: 'adminSiteSettings',
links.push({ href: '/admin/site_settings/category/required',
icon: 'gear',
label: 'admin.site_settings.title',
className: 'settings-link' });