Skip to content

Commit

Permalink
feat(dltfilterassistant): show the source on multiple lines
Browse files Browse the repository at this point in the history
Break the source at the & sign to ease understanding the logic and readbility.
  • Loading branch information
mbehr1 committed Jan 1, 2021
1 parent ec29c70 commit d8d129f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webview/src/components/dltFilterAssistant.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { triggerRestQueryDetails, objectShallowEq } from './../util';

/* todos
- add manual trigger button for preview (or find better way to avoid reports constantly popping up)
- uri escape filter strings (to avoid problems with &,",...)
- cache apply query rests (e.g. only on button press)
- add way for reports to contain multiple filter
- add hover/tooltip for filters showing the full object (e.g. tmpFb...)
Expand Down Expand Up @@ -419,7 +420,7 @@ export default function DLTFilterAssistantDialog(props) {
</Grid>
</Grid>
<Grid item>
source: '{dataSource}'
source:<React.Fragment>{dataSource ? dataSource.split('&').map((fra, index) => <React.Fragment><br />{index > 0 ? <React.Fragment>&emsp;</React.Fragment> : null}{index > 0 ? '&' + fra : fra}</React.Fragment>) : ''}</React.Fragment>
</Grid>
<Grid item>
<Paper>
Expand Down

0 comments on commit d8d129f

Please sign in to comment.