Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import $ from "jquery";
import Modal from "../modal/modal";
import Modal from "../modal/modal--implementation";

export default class Contentrules {
constructor(el) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import $ from "jquery";
import Modal from "../modal/modal";
import Modal from "../modal/modal--implementation";

export default class DexterityTypesListing {
constructor(el) {
Expand Down
2 changes: 1 addition & 1 deletion src/pat/controlpanels/registry--implementation.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import $ from "jquery";
import utils from "../../core/utils";
import Modal from "../modal/modal";
import Modal from "../modal/modal--implementation";

export default class ConfigRegistry {
constructor(el) {
Expand Down
6 changes: 4 additions & 2 deletions src/pat/manageportlets/manageportlets.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import $ from "jquery";
import Modal from "../modal/modal";
import Base from "@patternslib/patternslib/src/core/base";
import logger from "@patternslib/patternslib/src/core/logging";
import utils from "../../core/utils";
Expand Down Expand Up @@ -109,8 +108,11 @@ export default Base.extend({
$message.fadeTo(500, 0.6);
}, 3000);
},
showEditPortlet: function (url) {
showEditPortlet: async function (url) {
log.info("show edit portlet in modal");
// manageportlets is registered eagerly, so it loads the modal
// implementation on demand to keep it out of the eager bundle.
const Modal = (await import("../modal/modal--implementation")).default;
var that = this;
var $a = $("<a/>");
$("body").append($a);
Expand Down
Loading
Loading