Project

General

Profile

« Previous | Next » 

Revision 0f7f5d70

Added by Maria Agaphontzev almost 5 years ago

Fixes #27702 - creates export button component

View differences:

webpack/assets/javascripts/react_app/common/urlHelpers.js
if (navigateTo) navigateTo(uri.toString());
else window.Turbolinks.visit(uri.toString());
};
export const exportURL = () => {
const href = getURI();
return `${href.pathname()}${href.search()}.csv`;
};

Also available in: Unified diff