mirror of
https://github.com/nasa/openmct.git
synced 2025-01-31 16:36:13 +00:00
[About] Expose controllers, routes
Expose controllers for use in the About dialog, WTD-667.
This commit is contained in:
parent
f7818b7e76
commit
b4a8940fe8
@ -5,12 +5,30 @@
|
||||
{
|
||||
"key": "app-logo",
|
||||
"priority": "optional",
|
||||
"templateUrl": "app-logo.html"
|
||||
"templateUrl": "templates/app-logo.html"
|
||||
},
|
||||
{
|
||||
"key": "about-logo",
|
||||
"priority": "preferred",
|
||||
"templateUrl": "about-logo.html"
|
||||
"templateUrl": "templates/about-logo.html"
|
||||
}
|
||||
],
|
||||
"controllers": [
|
||||
{
|
||||
"key": "LogoController",
|
||||
"depends": [ "overlayService" ],
|
||||
"implementation": "LogoController.js"
|
||||
},
|
||||
{
|
||||
"key": "AboutController",
|
||||
"depends": [ "versions[]", "$window" ],
|
||||
"implementation": "AboutController.js"
|
||||
}
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"when": "/licenses",
|
||||
"templateUrl": "templates/licenses.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ define(
|
||||
return versions;
|
||||
},
|
||||
openLicenses: function () {
|
||||
$window.open("#/licenses", "_blank");
|
||||
$window.open("#/licenses");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user