File tree Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ export function addCommands(
206
206
current . model . toggleIdentify ( ) ;
207
207
208
208
if ( current . model . isIdentifying ) {
209
- current . model . activeRightPanelTab = 'identifyPanel' ;
209
+ current . model . currentMode = 'identifyPanel' ;
210
210
}
211
211
212
212
commands . notifyCommandChanged ( CommandIDs . identify ) ;
Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ export const RightPanel: React.FC<IRightPanelProps> = props => {
42
42
) ;
43
43
44
44
React . useEffect ( ( ) => {
45
- if ( props . model . activeRightPanelTab ) {
46
- setCurTab ( props . model . activeRightPanelTab ) ;
45
+ if ( props . model . currentMode ) {
46
+ setCurTab ( props . model . currentMode ) ;
47
47
}
48
- } , [ props . model . activeRightPanelTab ] ) ;
48
+ } , [ props . model . currentMode ] ) ;
49
49
50
50
return (
51
51
< div className = "jgis-right-panel-container" >
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ export interface IJupyterGISModel extends DocumentRegistry.IModel {
160
160
geolocation : JgisCoordinates ;
161
161
localState : IJupyterGISClientState | null ;
162
162
annotationModel ?: IAnnotationModel ;
163
- activeRightPanelTab ?: string ;
163
+ currentMode ?: string ;
164
164
165
165
themeChanged : Signal <
166
166
IJupyterGISModel ,
Original file line number Diff line number Diff line change @@ -79,18 +79,18 @@ export class JupyterGISModel implements IJupyterGISModel {
79
79
return this . _settings ;
80
80
}
81
81
82
- get activeRightPanelTab ( ) : string | undefined {
83
- return this . _activeRightPanelTab ;
82
+ get currentMode ( ) : string | undefined {
83
+ return this . _currentMode ;
84
84
}
85
85
86
- set activeRightPanelTab ( tab : string | undefined ) {
87
- if ( this . _activeRightPanelTab !== tab ) {
88
- const oldValue = this . _activeRightPanelTab ;
89
- this . _activeRightPanelTab = tab ;
86
+ set currentMode ( mode : string | undefined ) {
87
+ if ( this . _currentMode !== mode ) {
88
+ const oldValue = this . _currentMode ;
89
+ this . _currentMode = mode ;
90
90
this . _stateChanged . emit ( {
91
- name : 'activeRightPanelTab ' ,
91
+ name : 'currentMode ' ,
92
92
oldValue,
93
- newValue : tab ,
93
+ newValue : mode ,
94
94
} ) ;
95
95
}
96
96
}
@@ -803,7 +803,7 @@ export class JupyterGISModel implements IJupyterGISModel {
803
803
private _readOnly = false ;
804
804
private _isDisposed = false ;
805
805
806
- private _activeRightPanelTab : string | undefined ;
806
+ private _currentMode : string | undefined ;
807
807
808
808
private _userChanged = new Signal < this, IUserData [ ] > ( this ) ;
809
809
private _usersMap ?: Map < number , any > ;
You can’t perform that action at this time.
0 commit comments