mirror of
https://github.com/nasa/openmct.git
synced 2025-02-07 19:40:28 +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",
|
"key": "app-logo",
|
||||||
"priority": "optional",
|
"priority": "optional",
|
||||||
"templateUrl": "app-logo.html"
|
"templateUrl": "templates/app-logo.html"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "about-logo",
|
"key": "about-logo",
|
||||||
"priority": "preferred",
|
"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;
|
return versions;
|
||||||
},
|
},
|
||||||
openLicenses: function () {
|
openLicenses: function () {
|
||||||
$window.open("#/licenses", "_blank");
|
$window.open("#/licenses");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user