You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by be...@apache.org on 2023/06/29 01:08:43 UTC
[superset] 05/05: Revert small change
This is an automated email from the ASF dual-hosted git repository.
beto pushed a commit to branch customize_screenshot_width
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 6a358f5fec791364ae829320ca9deb2589240ef2
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Wed Jun 28 18:07:01 2023 -0700
Revert small change
---
.../src/features/alerts/AlertReportModal.tsx | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/superset-frontend/src/features/alerts/AlertReportModal.tsx b/superset-frontend/src/features/alerts/AlertReportModal.tsx
index d8d82b33ce..f20d98b146 100644
--- a/superset-frontend/src/features/alerts/AlertReportModal.tsx
+++ b/superset-frontend/src/features/alerts/AlertReportModal.tsx
@@ -1507,16 +1507,18 @@ const AlertReportModal: FunctionComponent<AlertReportModalProps> = ({
</div>
</StyledInputContainer>
)}
- <div className="inline-container">
- <StyledCheckbox
- data-test="bypass-cache"
- className="checkbox"
- checked={forceScreenshot}
- onChange={onForceScreenshotChange}
- >
- {TRANSLATIONS.IGNORE_CACHE_TEXT}
- </StyledCheckbox>
- </div>
+ {(isReport || contentType === 'dashboard') && (
+ <div className="inline-container">
+ <StyledCheckbox
+ data-test="bypass-cache"
+ className="checkbox"
+ checked={forceScreenshot}
+ onChange={onForceScreenshotChange}
+ >
+ {TRANSLATIONS.IGNORE_CACHE_TEXT}
+ </StyledCheckbox>
+ </div>
+ )}
<StyledSectionTitle>
<h4>{TRANSLATIONS.NOTIFICATION_METHOD_TEXT}</h4>
<span className="required">*</span>