[Features] Added option to specify a type to exclusively apply the Autoflow view to
This commit is contained in:
@@ -7,45 +7,48 @@ define([
|
|||||||
AutoflowTabularController,
|
AutoflowTabularController,
|
||||||
MCTAutoflowTable
|
MCTAutoflowTable
|
||||||
) {
|
) {
|
||||||
return function (openmct) {
|
return function (options) {
|
||||||
openmct.legacyRegistry.register("platform/features/autoflow", {
|
return function (openmct) {
|
||||||
"name": "WARP Telemetry Adapter",
|
openmct.legacyRegistry.register("platform/features/autoflow", {
|
||||||
"description": "Retrieves telemetry from the WARP Server and provides related types and views.",
|
"name": "WARP Telemetry Adapter",
|
||||||
"resources": "res",
|
"description": "Retrieves telemetry from the WARP Server and provides related types and views.",
|
||||||
"extensions": {
|
"resources": "res",
|
||||||
"views": [
|
"extensions": {
|
||||||
{
|
"views": [
|
||||||
"key": "autoflow",
|
{
|
||||||
"name": "Autoflow Tabular",
|
"key": "autoflow",
|
||||||
"cssClass": "icon-packet",
|
"name": "Autoflow Tabular",
|
||||||
"description": "A tabular view of packet contents.",
|
"cssClass": "icon-packet",
|
||||||
"template": autoflowTabularTemplate,
|
"description": "A tabular view of packet contents.",
|
||||||
"needs": [
|
"template": autoflowTabularTemplate,
|
||||||
"telemetry"
|
"type": options && options.type,
|
||||||
],
|
"needs": [
|
||||||
"delegation": true
|
"telemetry"
|
||||||
}
|
],
|
||||||
],
|
"delegation": true
|
||||||
"controllers": [
|
}
|
||||||
{
|
],
|
||||||
"key": "AutoflowTabularController",
|
"controllers": [
|
||||||
"implementation": AutoflowTabularController,
|
{
|
||||||
"depends": [
|
"key": "AutoflowTabularController",
|
||||||
"$scope",
|
"implementation": AutoflowTabularController,
|
||||||
"$timeout",
|
"depends": [
|
||||||
"telemetrySubscriber"
|
"$scope",
|
||||||
]
|
"$timeout",
|
||||||
}
|
"telemetrySubscriber"
|
||||||
],
|
]
|
||||||
"directives": [
|
}
|
||||||
{
|
],
|
||||||
"key": "mctAutoflowTable",
|
"directives": [
|
||||||
"implementation": MCTAutoflowTable
|
{
|
||||||
}
|
"key": "mctAutoflowTable",
|
||||||
]
|
"implementation": MCTAutoflowTable
|
||||||
}
|
}
|
||||||
});
|
]
|
||||||
openmct.legacyRegistry.enable("platform/features/autoflow");
|
}
|
||||||
|
});
|
||||||
|
openmct.legacyRegistry.enable("platform/features/autoflow");
|
||||||
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -57,9 +57,16 @@ define([
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
plugins.AutoflowView = function () {
|
/**
|
||||||
return AutoflowPlugin;
|
* A tabular view showing the latest values of multiple telemetry points at
|
||||||
};
|
* once. Formatted so that labels and values are aligned.
|
||||||
|
*
|
||||||
|
* @param {Object} [options] Optional settings to apply to the autoflow
|
||||||
|
* tabular view. Currently supports one option, 'type'.
|
||||||
|
* @param {string} [options.type] The key of an object type to apply this view
|
||||||
|
* to exclusively.
|
||||||
|
*/
|
||||||
|
plugins.AutoflowView = AutoflowPlugin;
|
||||||
|
|
||||||
var conductorInstalled = false;
|
var conductorInstalled = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user