mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 06:53:47 +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';
|
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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user