mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 15:43:48 +00:00
[Licenses] Add license page template
Add template to populate open source licenses page from extensions exposed by bundles; WTD-669.
This commit is contained in:
27
platform/commonUI/about/src/LicenseController.js
Normal file
27
platform/commonUI/about/src/LicenseController.js
Normal file
@ -0,0 +1,27 @@
|
||||
/*global define*/
|
||||
|
||||
define(
|
||||
[],
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Provides extension-introduced licenses information to the
|
||||
* licenses route.
|
||||
* @constructor
|
||||
*/
|
||||
function LicenseController(licenses) {
|
||||
return {
|
||||
/**
|
||||
* Get license information.
|
||||
* @returns {Array} license extensions
|
||||
*/
|
||||
licenses: function () {
|
||||
return licenses;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return LicenseController;
|
||||
}
|
||||
);
|
Reference in New Issue
Block a user