Skip to content

Commit bec9f98

Browse files
committed
When clicking on the status chips, toggle the respective pane
Before it would open but not close. Now the click toggles between open/closed states.
1 parent fe21d3c commit bec9f98

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

modules/ui/UiFilterStatus.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class UiFilterStatus {
109109

110110
/**
111111
* click
112-
* When clicking on a status chip, open the Map Data pane
112+
* When clicking on a status chip, toggle the Map Data pane.
113113
* @param {Event} e - event that triggered the click (if any)
114114
*/
115115
click(e) {
@@ -120,8 +120,7 @@ export class UiFilterStatus {
120120

121121
this.Tooltip.hide();
122122

123-
// open the Issues pane
124-
ui.togglePanes(context.container().select('.map-panes .map-data-pane'));
123+
ui.Overmap.MapPanes.MapData.togglePane();
125124
}
126125

127126
}

modules/ui/UiValidatorStatus.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class UiValidatorStatus {
143143

144144
/**
145145
* click
146-
* When clicking on a status chip, open the Issues pane
146+
* When clicking on a status chip, toggle the Issues pane.
147147
* @param {Event} e - event that triggered the click (if any)
148148
*/
149149
click(e) {
@@ -155,8 +155,7 @@ export class UiValidatorStatus {
155155
this.IssuesTooltip.hide();
156156
this.ResolvedTooltip.hide();
157157

158-
// open the Issues pane
159-
ui.togglePanes(context.container().select('.map-panes .issues-pane'));
158+
ui.Overmap.MapPanes.Issues.togglePane();
160159
}
161160

162161
}

0 commit comments

Comments
 (0)