mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
FIX: Don't reopen instance of controller.
This commit is contained in:
parent
7e076d63ba
commit
a382d5d2d2
|
@ -1,4 +1,5 @@
|
|||
import { withPluginApi } from 'discourse/lib/plugin-api';
|
||||
import ComposerController from 'discourse/controllers/composer';
|
||||
|
||||
function initializeDetails(api) {
|
||||
api.decorateCooked($elem => $("details", $elem).details());
|
||||
|
@ -11,8 +12,6 @@ function initializeDetails(api) {
|
|||
};
|
||||
});
|
||||
|
||||
const ComposerController = api.container.lookup("controller:composer");
|
||||
|
||||
ComposerController.reopen({
|
||||
actions: {
|
||||
insertDetails() {
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
import { withPluginApi } from 'discourse/lib/plugin-api';
|
||||
import showModal from 'discourse/lib/show-modal';
|
||||
import ComposerController from 'discourse/controllers/composer';
|
||||
|
||||
function initializePollUIBuilder(api) {
|
||||
const ComposerController = api.container.lookup("controller:composer");
|
||||
|
||||
ComposerController.reopen({
|
||||
actions: {
|
||||
showPollBuilder() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user