Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
Hide button
Browse files Browse the repository at this point in the history
  • Loading branch information
lequangtrai committed Apr 11, 2024
1 parent fbb55fc commit fa40f6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion superset-frontend/src/dashboard/components/Header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ import setPeriodicRunner, {
import { PageHeaderWithActions } from 'src/components/PageHeaderWithActions';
import { DashboardEmbedModal } from '../DashboardEmbedControls';
import OverwriteConfirm from '../OverwriteConfirm';
import { getUrlParam } from 'src/utils/urlUtils';
import { URL_PARAMS } from 'src/constants';

const extensionsRegistry = getExtensionsRegistry();

Expand Down Expand Up @@ -501,6 +503,8 @@ class Header extends React.PureComponent {

const NavExtension = extensionsRegistry.get('dashboard.nav.right');

const isKatalonEmbeddedMode = getUrlParam(URL_PARAMS.isKatalonEmbeddedMode);

return (
<div
css={headerContainerStyle}
Expand Down Expand Up @@ -624,7 +628,7 @@ class Header extends React.PureComponent {
) : (
<div css={actionButtonsStyle}>
{NavExtension && <NavExtension />}
{userCanEdit && (
{!isKatalonEmbeddedMode && userCanEdit && (
<Button
buttonStyle="secondary"
onClick={this.toggleEditMode}
Expand Down

0 comments on commit fa40f6a

Please sign in to comment.