mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 15:18:12 +00:00
Fixes to enable testing by third party applications (#2523)
* Initial commit of telemetry table spec * Fix errors found by running Open MCT app headless * Do not double install import-export plugin * Changes to allow Open MCT to be initialized more than once without binding to window.document * Remove table spec accidentally added
This commit is contained in:
committed by
Deep Tailor
parent
7477536478
commit
4414161faf
@ -55,13 +55,13 @@ define([
|
||||
|
||||
FrameworkLayer.prototype.initializeApplication = function (
|
||||
angular,
|
||||
legacyRegistry,
|
||||
openmct,
|
||||
logLevel
|
||||
) {
|
||||
var $http = this.$http,
|
||||
$log = this.$log,
|
||||
app = angular.module(Constants.MODULE_NAME, ["ngRoute"]),
|
||||
loader = new BundleLoader($http, $log, legacyRegistry),
|
||||
loader = new BundleLoader($http, $log, openmct.legacyRegistry),
|
||||
resolver = new BundleResolver(
|
||||
new ExtensionResolver(
|
||||
new ImplementationLoader({}),
|
||||
@ -77,7 +77,7 @@ define([
|
||||
),
|
||||
bootstrapper = new ApplicationBootstrapper(
|
||||
angular,
|
||||
window.document,
|
||||
openmct.element,
|
||||
$log
|
||||
),
|
||||
initializer = new FrameworkInitializer(
|
||||
|
@ -41,7 +41,7 @@ define(
|
||||
function Main() {
|
||||
}
|
||||
|
||||
Main.prototype.run = function (legacyRegistry) {
|
||||
Main.prototype.run = function (openmct) {
|
||||
// Get a reference to Angular's injector, so we can get $http and $log
|
||||
// services, which are useful to the framework layer.
|
||||
var injector = angular.injector(['ng']);
|
||||
@ -53,7 +53,7 @@ define(
|
||||
}
|
||||
|
||||
return injector.instantiate(['$http', '$log', FrameworkLayer])
|
||||
.initializeApplication(angular, legacyRegistry, logLevel());
|
||||
.initializeApplication(angular, openmct, logLevel());
|
||||
};
|
||||
|
||||
return Main;
|
||||
|
Reference in New Issue
Block a user