mirror of
https://github.com/flarum/core.git
synced 2025-07-25 18:51:40 +02:00
Release 0.1.0-beta.4
This commit is contained in:
6
js/admin/dist/app.js
vendored
6
js/admin/dist/app.js
vendored
@@ -18996,10 +18996,13 @@ System.register('flarum/components/Navigation', ['flarum/Component', 'flarum/com
|
||||
var _app2 = app;
|
||||
var history = _app2.history;
|
||||
|
||||
var previous = history.getPrevious() || {};
|
||||
|
||||
return LinkButton.component({
|
||||
className: 'Button Button--icon Navigation-back',
|
||||
className: 'Button Navigation-back ' + (previous.title ? '' : 'Button--icon'),
|
||||
href: history.backUrl(),
|
||||
icon: 'chevron-left',
|
||||
children: previous.title,
|
||||
config: function config() {},
|
||||
onclick: function onclick(e) {
|
||||
if (e.shiftKey || e.ctrlKey || e.metaKey || e.which === 2) return;
|
||||
@@ -20663,6 +20666,7 @@ System.register('flarum/initializers/boot', ['flarum/utils/ScrollListener', 'fla
|
||||
canGoBack: function canGoBack() {
|
||||
return true;
|
||||
},
|
||||
getPrevious: function getPrevious() {},
|
||||
backUrl: function backUrl() {
|
||||
return app.forum.attribute('baseUrl');
|
||||
},
|
||||
|
Reference in New Issue
Block a user