FIX: Site Settings weirdness with back button
This commit is contained in:
parent
874e8900af
commit
1cd14ef3aa
|
@ -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'),
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
import SiteSetting from 'admin/models/site-setting';
|
||||
|
||||
export default Discourse.Route.extend({
|
||||
queryParams: {
|
||||
filter: { replace: true }
|
||||
},
|
||||
|
||||
model() {
|
||||
return SiteSetting.findAll();
|
||||
},
|
||||
|
|
|
@ -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' });
|
||||
|
|
Loading…
Reference in New Issue