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:07:13 UTC

[superset] branch customize_screenshot_width updated: 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


The following commit(s) were added to refs/heads/customize_screenshot_width by this push:
     new 0c88517b1e Revert small change
0c88517b1e is described below

commit 0c88517b1e650bf399ae630da84f5aeb8e8ae9c1
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>