Use new newDiscussion method after core promise cleanup (#51)

This commit is contained in:
Clark Winkelmann 2018-09-22 23:48:03 +02:00 committed by Franz Liedke
parent b0a2482c87
commit 7de5770d5b

View File

@ -6,7 +6,7 @@ import TagDiscussionModal from './components/TagDiscussionModal';
import tagsLabel from '../common/helpers/tagsLabel'; import tagsLabel from '../common/helpers/tagsLabel';
export default function() { export default function() {
extend(IndexPage.prototype, 'composeNewDiscussion', function(promise) { extend(IndexPage.prototype, 'newDiscussionAction', function(promise) {
const tag = app.store.getBy('tags', 'slug', this.params().tags); const tag = app.store.getBy('tags', 'slug', this.params().tags);
if (tag) { if (tag) {