diff --git a/adminSiteClient/EditorExportTab.tsx b/adminSiteClient/EditorExportTab.tsx index ccbd59d7f3..426d9cae7d 100644 --- a/adminSiteClient/EditorExportTab.tsx +++ b/adminSiteClient/EditorExportTab.tsx @@ -8,6 +8,10 @@ import { GrapherStaticFormat, } from "@ourworldindata/utils" import { AbstractChartEditor } from "./AbstractChartEditor.js" +import { ETL_WIZARD_URL } from "../settings/clientSettings.js" +import { faHatWizard, faDownload } from "@fortawesome/free-solid-svg-icons" +import { Button } from "antd" +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome/index.js" type ExportSettings = Required< Pick< @@ -227,6 +231,18 @@ export class EditorExportTab< } render() { + const chartAnimationUrl = new URL(`${ETL_WIZARD_URL}chart-animation`) + if (this.grapher.canonicalUrl) + chartAnimationUrl.searchParams.set( + "animation_chart_url", + this.grapher.canonicalUrl + ) + chartAnimationUrl.searchParams.set("animation_skip_button", "True") + // chartAnimationUrl.searchParams.set( + // "animation_chart_tab", + // this.grapher.tab ?? "" + // ) + return (