Skip to content

Commit

Permalink
feat: removed download as XML button
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikmv committed Oct 6, 2023
1 parent ebe67c2 commit f0c9cd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
7 changes: 2 additions & 5 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2023-09-04T07:07:59.195Z\n"
"PO-Revision-Date: 2023-09-04T07:07:59.195Z\n"
"POT-Creation-Date: 2023-10-06T08:03:19.570Z\n"
"PO-Revision-Date: 2023-10-06T08:03:19.570Z\n"

msgid "Choose one or more dates..."
msgstr "Choose one or more dates..."
Expand Down Expand Up @@ -1353,9 +1353,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 f0c9cd1

Please sign in to comment.