mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Back button was broken after clicking flags in hamburger
This commit is contained in:
parent
122fb8025d
commit
e863d66e33
@ -1,5 +1,5 @@
|
|||||||
export default Discourse.Route.extend({
|
export default Discourse.Route.extend({
|
||||||
redirect: function() {
|
redirect() {
|
||||||
this.replaceWith('adminFlags.list', 'active');
|
this.replaceWith('adminFlags.list', 'active');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -36,7 +36,7 @@ export default createWidget('hamburger-menu', {
|
|||||||
const { currentUser } = this;
|
const { currentUser } = this;
|
||||||
|
|
||||||
const links = [{ route: 'admin', className: 'admin-link', icon: 'wrench', label: 'admin_title' },
|
const links = [{ route: 'admin', className: 'admin-link', icon: 'wrench', label: 'admin_title' },
|
||||||
{ route: 'adminFlags',
|
{ href: '/admin/flags/index',
|
||||||
className: 'flagged-posts-link',
|
className: 'flagged-posts-link',
|
||||||
icon: 'flag',
|
icon: 'flag',
|
||||||
label: 'flags_title',
|
label: 'flags_title',
|
||||||
|
Loading…
Reference in New Issue
Block a user