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 e6edcde4e8aa18fd4e33cdf56b1a0efe03cf76b3
Author: Beto Dealmeida <[email protected]>
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>

Reply via email to