@@ -7,45 +7,48 @@ define([
7
7
AutoflowTabularController ,
8
8
MCTAutoflowTable
9
9
) {
10
- return function ( openmct ) {
11
- openmct . legacyRegistry . register ( "platform/features/autoflow" , {
12
- "name" : "WARP Telemetry Adapter" ,
13
- "description" : "Retrieves telemetry from the WARP Server and provides related types and views." ,
14
- "resources" : "res" ,
15
- "extensions" : {
16
- "views" : [
17
- {
18
- "key" : "autoflow" ,
19
- "name" : "Autoflow Tabular" ,
20
- "cssClass" : "icon-packet" ,
21
- "description" : "A tabular view of packet contents." ,
22
- "template" : autoflowTabularTemplate ,
23
- "needs" : [
24
- "telemetry"
25
- ] ,
26
- "delegation" : true
27
- }
28
- ] ,
29
- "controllers" : [
30
- {
31
- "key" : "AutoflowTabularController" ,
32
- "implementation" : AutoflowTabularController ,
33
- "depends" : [
34
- "$scope" ,
35
- "$timeout" ,
36
- "telemetrySubscriber"
37
- ]
38
- }
39
- ] ,
40
- "directives" : [
41
- {
42
- "key" : "mctAutoflowTable" ,
43
- "implementation" : MCTAutoflowTable
44
- }
45
- ]
46
- }
47
- } ) ;
48
- openmct . legacyRegistry . enable ( "platform/features/autoflow" ) ;
10
+ return function ( options ) {
11
+ return function ( openmct ) {
12
+ openmct . legacyRegistry . register ( "platform/features/autoflow" , {
13
+ "name" : "WARP Telemetry Adapter" ,
14
+ "description" : "Retrieves telemetry from the WARP Server and provides related types and views." ,
15
+ "resources" : "res" ,
16
+ "extensions" : {
17
+ "views" : [
18
+ {
19
+ "key" : "autoflow" ,
20
+ "name" : "Autoflow Tabular" ,
21
+ "cssClass" : "icon-packet" ,
22
+ "description" : "A tabular view of packet contents." ,
23
+ "template" : autoflowTabularTemplate ,
24
+ "type" : options && options . type ,
25
+ "needs" : [
26
+ "telemetry"
27
+ ] ,
28
+ "delegation" : true
29
+ }
30
+ ] ,
31
+ "controllers" : [
32
+ {
33
+ "key" : "AutoflowTabularController" ,
34
+ "implementation" : AutoflowTabularController ,
35
+ "depends" : [
36
+ "$scope" ,
37
+ "$timeout" ,
38
+ "telemetrySubscriber"
39
+ ]
40
+ }
41
+ ] ,
42
+ "directives" : [
43
+ {
44
+ "key" : "mctAutoflowTable" ,
45
+ "implementation" : MCTAutoflowTable
46
+ }
47
+ ]
48
+ }
49
+ } ) ;
50
+ openmct . legacyRegistry . enable ( "platform/features/autoflow" ) ;
51
+ } ;
49
52
} ;
50
53
} ) ;
51
54
0 commit comments