File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,18 @@ export default {
84
84
}
85
85
},
86
86
},
87
+ watch: {
88
+ enabled: {
89
+ handler (val , oldVal ) {
90
+ if (val === oldVal)
91
+ return
92
+ if (val)
93
+ this .onEnabled ()
94
+ else
95
+ this .onDisabled ()
96
+ },
97
+ },
98
+ },
87
99
mounted () {
88
100
this .toggleCombo && document .body .addEventListener (' keydown' , this .onKeydown )
89
101
this .toggleEventListener ()
@@ -232,6 +244,12 @@ export default {
232
244
onUpdated () {
233
245
// to be replaced programmatically
234
246
},
247
+ onEnabled () {
248
+ // to be replaced programmatically
249
+ },
250
+ onDisabled () {
251
+ // to be replaced programmatically
252
+ },
235
253
},
236
254
}
237
255
< / script>
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ export interface VueInspectorClient {
24
24
enable : ( ) => void
25
25
disable : ( ) => void
26
26
toggleEnabled : ( ) => void
27
+ onEnabled : ( ) => void
28
+ onDisabled : ( ) => void
29
+
27
30
openInEditor : ( url : URL ) => void
28
31
onUpdated : ( ) => void
29
32
}
You can’t perform that action at this time.
0 commit comments