File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -499,8 +499,8 @@ GEOComp = withMethodExposing(GEOComp, [
499
499
} ,
500
500
{
501
501
method : {
502
- name : "loadConfig " ,
503
- description : "Load configuration the plugin by json" ,
502
+ name : "setConfig " ,
503
+ description : "Set configuration the plugin by json" ,
504
504
params : [
505
505
{
506
506
name : "json" ,
@@ -526,14 +526,20 @@ GEOComp = withMethodExposing(GEOComp, [
526
526
} ,
527
527
{
528
528
method : {
529
- name : "saveConfig" ,
530
- description : "Save configuration the plugin by json" ,
529
+ name : "getConfig" ,
530
+ description : "Get configuration the plugin by json" ,
531
+ params : [
532
+ {
533
+ name : "asString" ,
534
+ type : "boolean" ,
535
+ }
536
+ ]
531
537
} ,
532
538
execute : ( comp : any , params : any ) => {
533
539
const data = comp . toJsonValue ( ) ;
534
540
console . debug ( JSON . stringify ( data , null ) )
535
541
//Event config needs to be added
536
- return JSON . stringify ( data , null )
542
+ return params [ 0 ] === true ? JSON . stringify ( data , null ) : data
537
543
}
538
544
} ,
539
545
] ) ;
You can’t perform that action at this time.
0 commit comments