1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 08:27:42 +02:00

forum: uncomment discussion list pane methods

This commit is contained in:
David Sevilla Martin
2020-05-03 16:41:38 -04:00
parent 1d83b740d2
commit 4a5a5a9ef0
5 changed files with 133 additions and 78 deletions

View File

@@ -1,3 +1,5 @@
import app from '../app';
import Page from './Page';
import ItemList from '../../common/utils/ItemList';
import DiscussionHero from './DiscussionHero';
@@ -42,9 +44,8 @@ export default class DiscussionPage extends Page {
// then the pane would which would be slow and would cause problems with
// event handlers.
if (app.cache.discussionList) {
// TODO app pane
// app.pane.enable();
// app.pane.hide();
app.pane.enable();
app.pane.hide();
}
app.history.push('discussion');
@@ -78,8 +79,7 @@ export default class DiscussionPage extends Page {
// discussion list pane. Also, if we're composing a reply to this
// discussion, minimize the composer unless it's empty, in which case
// we'll just close it.
// TODO pane & composer
// app.pane.disable();
app.pane.disable();
// if (app.composingReplyTo(this.discussion) && !app.composer.component.content()) {
// app.composer.hide();