REFACTOR: Move bootbox to an import instead of global variable (#10533)
This commit is contained in:
@@ -30,6 +30,7 @@ import { getOwner } from "discourse-common/lib/get-owner";
|
||||
import { setTopicList } from "discourse/lib/topic-list-tracker";
|
||||
import { setURLContainer } from "discourse/lib/url";
|
||||
import { setDefaultOwner } from "discourse-common/lib/get-owner";
|
||||
import bootbox from "bootbox";
|
||||
|
||||
export function currentUser() {
|
||||
return User.create(sessionFixtures["/session/current.json"].current_user);
|
||||
@@ -97,7 +98,7 @@ function AcceptanceModal(option, _relatedTarget) {
|
||||
});
|
||||
}
|
||||
|
||||
window.bootbox.$body = $("#ember-testing");
|
||||
bootbox.$body = $("#ember-testing");
|
||||
$.fn.modal = AcceptanceModal;
|
||||
|
||||
let _pretenderCallbacks = {};
|
||||
|
||||
Reference in New Issue
Block a user