The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Allow downloads should show even when drills is off (#61969)
Phoomparin Mano57a07bdb4cbf
diff --git a/e2e/test/scenarios/embedding/sdk-iframe-embedding-setup/select-embed-options.cy.spec.ts b/e2e/test/scenarios/embedding/sdk-iframe-embedding-setup/select-embed-options.cy.spec.tsindex d13d8345ddd..39ae1c372c5 100644--- a/e2e/test/scenarios/embedding/sdk-iframe-embedding-setup/select-embed-options.cy.spec.ts+++ b/e2e/test/scenarios/embedding/sdk-iframe-embedding-setup/select-embed-options.cy.spec.ts@@ -168,6 +168,9 @@ H.describeWithSnowplow(suiteTitle, () => {cy.findByText("See these Orders").should("not.exist");});+ cy.log("allow downloads should be visible when drills are off (EMB-712)");+ getEmbedSidebar().findByLabelText("Allow downloads").should("be.visible");+cy.log("snippet should be updated");getEmbedSidebar().findByText("Get Code").click();codeBlock().should("contain", 'drills="false"');diff --git a/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk_setup/components/SelectEmbedOptionsStep.tsx b/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk_setup/components/SelectEmbedOptionsStep.tsxindex dc6c06e40aa..c14d7bd47f0 100644--- a/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk_setup/components/SelectEmbedOptionsStep.tsx+++ b/enterprise/frontend/src/metabase-enterprise/embedding_iframe_sdk_setup/components/SelectEmbedOptionsStep.tsx@@ -30,8 +30,7 @@ export const SelectEmbedOptionsStep = () => {[theme, updateSettings],);- const isDashboardOrInteractiveQuestion =- settings.dashboardId || (settings.questionId && settings.drills);+ const isDashboardOrQuestion = settings.dashboardId || settings.questionId;return (<Stack gap="md">@@ -48,7 +47,7 @@ export const SelectEmbedOptionsStep = () => {/>)}- {isDashboardOrInteractiveQuestion && (+ {isDashboardOrQuestion && (<Checkboxlabel={t`Allow downloads`}checked={settings.withDownloads}