Skip to content

Commit

Permalink
changed checkbox name and corrected comment styles
Browse files Browse the repository at this point in the history
Signed-off-by: aribalam <arib.alam.iitkgp@gmail.com>
  • Loading branch information
aribalam committed Sep 24, 2020
1 parent 9e92d7e commit ba86337
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/ui/react-app/src/pages/graph/Panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class Panel extends Component<PanelProps & PathPrefixProps, PanelState> {
partial_response: this.props.options.usePartialResponse.toString(),
});

// add storeMatches to query params
// Add storeMatches to query params.
this.props.options.storeMatches?.forEach((store: Store) =>
params.append('storeMatch[]', `{__address__="${store.name}"}`)
);
Expand Down
6 changes: 3 additions & 3 deletions pkg/ui/react-app/src/pages/graph/PanelList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ export const PanelListContent: FC<PanelListProps> = ({
const [storeData, setStoreData] = useState([] as Store[]);

useEffect(() => {
// convert stores data to a unified stores array
// Convert stores data to a unified stores array.
let storeList: Store[] = [];
for (let type in stores) {
storeList.push(...stores[type]);
}
setStoreData(storeList);
// Clear selected stores for each panel
// Clear selected stores for each panel.
panels.forEach((panel: PanelMeta) => panel.options.storeMatches = []);
!panels.length && addPanel();
window.onpopstate = () => {
Expand Down Expand Up @@ -176,7 +176,7 @@ const PanelList: FC<RouteComponentProps & PathPrefixProps> = ({ pathPrefix = ''
defaultChecked={debugMode}
onChange={({ target }) => setDebugMode(target.checked)}
>
Debug mode
Enable Store Filtering
</Checkbox>
{(delta > 30 || timeErr) && (
<UncontrolledAlert color="danger">
Expand Down

0 comments on commit ba86337

Please sign in to comment.