File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
// Connectors
2
2
const logs = require ( '../connectors/logs' )
3
- const plugins = require ( '../connectors/plugins' )
4
3
const sharedData = require ( '../connectors/shared-data' )
5
4
const views = require ( '../connectors/views' )
6
5
// Utils
@@ -235,6 +234,7 @@ class PluginApi {
235
234
* @returns {Promise }
236
235
*/
237
236
callAction ( id , params ) {
237
+ const plugins = require ( '../connectors/plugins' )
238
238
return plugins . callAction ( { id, params } , this . context )
239
239
}
240
240
Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ export default {
20
20
$onPluginActionCalled ( cb ) {
21
21
return this . $apollo . addSmartSubscription ( `plugin-action-called-${ uid ++ } ` , {
22
22
query : PLUGIN_ACTION_CALLED ,
23
- result : cb
23
+ result : ( { data } ) => cb ( data . pluginActionCalled )
24
24
} )
25
25
} ,
26
26
$onPluginActionResolved ( cb ) {
27
27
return this . $apollo . addSmartSubscription ( `plugin-action-resolved-${ uid ++ } ` , {
28
28
query : PLUGIN_ACTION_RESOLVED ,
29
- result : cb
29
+ result : ( { data } ) => cb ( data . pluginActionResolved )
30
30
} )
31
31
}
32
32
}
You can’t perform that action at this time.
0 commit comments