Skip to content

Commit

Permalink
[Console] Disable export if no content (elastic#195178)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabarasaba authored Oct 7, 2024
1 parent 02d0c98 commit 76e4ffa
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ export function Main({ currentTabProp, isEmbeddable = false }: MainProps) {
<EuiToolTip content={MAIN_PANEL_LABELS.exportButtonTooltip}>
<EuiButtonEmpty
iconType="exportAction"
disabled={inputEditorValue === ''}
onClick={() =>
downloadFileAs(EXPORT_FILE_NAME, {
content: inputEditorValue,
Expand Down

0 comments on commit 76e4ffa

Please sign in to comment.