mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Upgrade Ember to 2.13
This commit is contained in:
@ -6,8 +6,7 @@ function initializePollUIBuilder(api) {
|
||||
|
||||
if (!siteSettings.poll_enabled && (api.getCurrentUser() && !api.getCurrentUser().staff)) return;
|
||||
|
||||
const ComposerController = api.container.lookupFactory("controller:composer");
|
||||
ComposerController.reopen({
|
||||
api.modifyClass('controller:composer', {
|
||||
actions: {
|
||||
showPollBuilder() {
|
||||
showModal("poll-ui-builder").set("toolbarEvent", this.get("toolbarEvent"));
|
||||
@ -28,6 +27,6 @@ export default {
|
||||
name: "add-poll-ui-builder",
|
||||
|
||||
initialize() {
|
||||
withPluginApi('0.5', initializePollUIBuilder);
|
||||
withPluginApi('0.8.7', initializePollUIBuilder);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user