ui_migration fix(deps): replacing global emiters to eventBus.emit, on mixings file.

This commit is contained in:
Antonio Anaya 2026-02-12 04:35:38 -06:00
parent a16a86f361
commit 869f410dbb
2 changed files with 4 additions and 13 deletions

View file

@ -7,6 +7,7 @@
*/
import UIkit from "uikit";
import { eventBus } from "@/eventBus";
export default {
methods: {
@ -14,7 +15,7 @@ export default {
var context = this;
// Stop GPU preview to show modal
context.$root.$emit("globalTogglePreview", false);
eventBus.emit("globalTogglePreview", false);
// force OK to be capitalised
UIkit.modal.i18n = { ok: "OK", cancel: "Cancel" };
@ -33,9 +34,9 @@ export default {
.finally(function () {
// Re-enable the GPU preview, if it was active before the modal
if (context.$store.state.autoGpuPreview) {
context.$root.$emit("globalTogglePreview", true);
eventBus.emit("globalTogglePreview", true);
}
context.$root.$emit("modalClosed");
eventBus.emit("modalClosed");
});
};
return new Promise(showModal);