File tree 3 files changed +13
-8
lines changed
3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -65,12 +65,12 @@ module.exports = new class Application extends MatreshkaObject {
65
65
evt . preventDefault ( ) ;
66
66
const results = lint ( this . code , this . toJSON ( ) ) ;
67
67
68
- this . set ( { results } )
69
-
70
- console . log ( results ) ;
68
+ this . set ( { results } ) ;
71
69
} ,
72
70
'change:parserName' : ( ) => setParser ( this . parserName ) ,
73
- 'rules@modify' : evt => console . log ( 'tablo' )
71
+ 'rules@rulechange' : ( ) => {
72
+ this . set ( 'configName' , '' , { silent : true } ) ;
73
+ }
74
74
} ) ;
75
75
}
76
76
}
Original file line number Diff line number Diff line change @@ -12,9 +12,13 @@ export default class Rules extends MatreshkaArray {
12
12
. calc ( 'useRecommended' , {
13
13
object : parent ,
14
14
key : 'useRecommended'
15
- } , null , { debounceCalc : false } ) ;
16
-
17
- this . recreate ( plugins ) ;
15
+ } , null , { debounceCalc : false } )
16
+ . on ( {
17
+ '*.*@rulechange' : ( ) => {
18
+ this . trigger ( 'rulechange' )
19
+ }
20
+ } )
21
+ . recreate ( plugins ) ;
18
22
}
19
23
20
24
update ( rules ) {
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export default class Rule extends MatreshkaObject {
40
40
source : 'dynamicValue' ,
41
41
handler : value => JSON . stringify ( value , null , '\t' )
42
42
}
43
- } ) ;
43
+ } )
44
+ . on ( 'click::isOn' , ( ) => this . trigger ( 'rulechange' ) ) ;
44
45
}
45
46
}
You can’t perform that action at this time.
0 commit comments