File tree Expand file tree Collapse file tree 3 files changed +19
-11
lines changed Expand file tree Collapse file tree 3 files changed +19
-11
lines changed Original file line number Diff line number Diff line change @@ -48,17 +48,6 @@ export default class ChangedFileItem extends ItemComponent {
48
48
return title ;
49
49
}
50
50
51
- terminatePendingState ( ) {
52
- if ( ! this . hasTerminatedPendingState ) {
53
- this . emitter . emit ( 'did-terminate-pending-state' ) ;
54
- this . hasTerminatedPendingState = true ;
55
- }
56
- }
57
-
58
- onDidTerminatePendingState ( callback ) {
59
- return this . emitter . on ( 'did-terminate-pending-state' , callback ) ;
60
- }
61
-
62
51
render ( ) {
63
52
const repository = this . props . workdirContextPool . getContext ( this . props . workingDirectory ) . getRepository ( ) ;
64
53
Original file line number Diff line number Diff line change @@ -60,4 +60,12 @@ export default class GitHubTabItem extends ItemComponent {
60
60
restoreFocus ( ) {
61
61
// No-op
62
62
}
63
+
64
+ destroy ( ) {
65
+ return false ;
66
+ }
67
+
68
+ terminatePendingState ( ) {
69
+ return false ;
70
+ }
63
71
}
Original file line number Diff line number Diff line change @@ -38,6 +38,17 @@ export default class ItemComponent extends React.Component {
38
38
return this . emitter . on ( 'did-destroy' , callback ) ;
39
39
}
40
40
41
+ terminatePendingState ( ) {
42
+ if ( ! this . hasTerminatedPendingState ) {
43
+ this . emitter . emit ( 'did-terminate-pending-state' ) ;
44
+ this . hasTerminatedPendingState = true ;
45
+ }
46
+ }
47
+
48
+ onDidTerminatePendingState ( callback ) {
49
+ return this . emitter . on ( 'did-terminate-pending-state' , callback ) ;
50
+ }
51
+
41
52
serialize ( ) {
42
53
return { } ;
43
54
}
You can’t perform that action at this time.
0 commit comments