1
0
mirror of https://github.com/flarum/core.git synced 2025-08-01 14:10:37 +02:00

Use icon instead of "Discussions" text, fix bugs

- Fix admin page crash
- Only show invisible pin button on desktop; hide it completely on ≤ tablet
This commit is contained in:
Toby Zerner
2015-11-03 15:53:38 +10:30
parent e69d277c87
commit eef5101238
4 changed files with 12 additions and 2 deletions

View File

@@ -31,6 +31,7 @@ export default function boot(app) {
app.alerts = m.mount(document.getElementById('alerts'), AlertManager.component());
app.history = {
canGoBack: () => true,
getPrevious: () => {},
backUrl: () => app.forum.attribute('baseUrl'),
back: function() {
window.location = this.backUrl();