mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 21:11:55 +08:00
Use new newDiscussion method after core promise cleanup (#51)
This commit is contained in:
parent
b0a2482c87
commit
7de5770d5b
|
@ -6,7 +6,7 @@ import TagDiscussionModal from './components/TagDiscussionModal';
|
|||
import tagsLabel from '../common/helpers/tagsLabel';
|
||||
|
||||
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);
|
||||
|
||||
if (tag) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user