Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [DHIS-14012] removed download as XML button #3434

Merged
merged 4 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading