Commit 55ccf152 authored by Pavel Mashliakovskiy's avatar Pavel Mashliakovskiy 🤹🏻

ensure adminui-vue exports `magicLink` (SystemJS.set freeze object, so should...

ensure adminui-vue exports `magicLink` (SystemJS.set freeze object, so should be exported before call to SystemJS)
parent d3538ae7
Pipeline #21853 skipped with stage
......@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Removed
### Fixed
- ensure adminui-vue exports `magicLink` (SystemJS.set freeze object, so should be exported before call to SystemJS)
## [1.12.3] - 2020-07-29
### Fixed
......
......@@ -55,6 +55,15 @@ module.exports.errorReporter = errorReporter
const lookups = require('./utils/lookups')
module.exports.lookups = lookups
const magicLink = require('./utils/magicLinks')
/**
* MagikLinks instance
* @type {{install: function(): void, addCommand: function(string, Function<Object, EventTarget, *>): void}}
*/
module.exports.magicLink = magicLink
magicLink.install()
magicLink.addCommand('setFocus', magicLinkFocusCommand)
if ((typeof SystemJS !== 'undefined') && !SystemJS.has('@unitybase/adminui-vue')) SystemJS.set('@unitybase/adminui-vue', SystemJS.newModule(module.exports))
const Vue = require('vue')
......@@ -147,15 +156,6 @@ function replaceDefaultRelogin () {
document.body.appendChild(vm.$el)
}
const magicLink = require('./utils/magicLinks')
/**
* MagikLinks instance
* @type {{install: function(): void, addCommand: function(string, Function<Object, EventTarget, *>): void}}
*/
module.exports.magicLink = magicLink
magicLink.install()
magicLink.addCommand('setFocus', magicLinkFocusCommand)
function magicLinkAdminUiCommand (params) {
$App.doCommand(params)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment