Skip to content

Commit

Permalink
feat: [DHIS-14012] removed download as XML button (#3434)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikmv authored and superskip committed Oct 27, 2023
1 parent ebfe2b4 commit fe4be89
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
3 changes: 0 additions & 3 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -1404,9 +1404,6 @@ msgstr "Working list could not be loaded"
msgid "Download as JSON"
msgstr "Download as JSON"

msgid "Download as XML"
msgstr "Download as XML"

msgid "Download as CSV"
msgstr "Download as CSV"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class DownloadDialogPlain extends PureComponent<Props & CssClasses> {
renderButtons() {
const { request = {}, absoluteApiPath, classes } = this.props;
const url = `${absoluteApiPath}/${request.url}`;
const deprecatedUrl = `${absoluteApiPath}/events/query`;
const { pageSize, page, ...paramsFromRequest } = request.queryParams || {};
const paramsObject = {
...paramsFromRequest,
Expand All @@ -65,19 +64,6 @@ class DownloadDialogPlain extends PureComponent<Props & CssClasses> {
</Button>
</a>
</div>
<div
className={classes.downloadLinkContainer}
>
<a
download="events.xml"
href={`${deprecatedUrl}.xml?${searchParamsString}`}
className={classes.downloadLink}
>
<Button>
{i18n.t('Download as XML')}
</Button>
</a>
</div>
<div>
<a
download="events.csv"
Expand Down

0 comments on commit fe4be89

Please sign in to comment.