mirror of
https://github.com/apache/superset.git
synced 2026-04-27 12:05:24 +00:00
chore: Expand error detail on screencapture (#25519)
This commit is contained in:
@@ -21,6 +21,7 @@ import { styled, useTheme, t } from '@superset-ui/core';
|
||||
import { noOp } from 'src/utils/common';
|
||||
import Modal from 'src/components/Modal';
|
||||
import Button from 'src/components/Button';
|
||||
import { isCurrentUserBot } from 'src/utils/isBot';
|
||||
|
||||
import Icons from 'src/components/Icons';
|
||||
import { ErrorLevel, ErrorSource } from './types';
|
||||
@@ -102,9 +103,10 @@ export default function ErrorAlert({
|
||||
const theme = useTheme();
|
||||
|
||||
const [isModalOpen, setIsModalOpen] = useState(false);
|
||||
const [isBodyExpanded, setIsBodyExpanded] = useState(false);
|
||||
const [isBodyExpanded, setIsBodyExpanded] = useState(isCurrentUserBot());
|
||||
|
||||
const isExpandable = ['explore', 'sqllab'].includes(source);
|
||||
const isExpandable =
|
||||
isCurrentUserBot() || ['explore', 'sqllab'].includes(source);
|
||||
const iconColor = theme.colors[level].base;
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user