mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 01:16:01 +00:00
fix
This commit is contained in:
@@ -77,7 +77,7 @@ const connectionAppObject = (flags) => (
|
||||
if (!status) statusIcon = 'icon loading';
|
||||
else if (status.name == 'pending') statusIcon = 'icon loading';
|
||||
else if (status.name == 'ok') statusIcon = 'img green-ok';
|
||||
else statusIcon = 'img red-error';
|
||||
else statusIcon = 'img error';
|
||||
if (status && status.name == 'error') {
|
||||
statusTitle = status.message;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ const iconNames = {
|
||||
|
||||
'img green-ok': 'mdi mdi-check-circle color-green-8',
|
||||
'img alert': 'mdi mdi-alert-circle color-blue-6',
|
||||
// 'img red-error': 'mdi mdi-close-circle color-red-7',
|
||||
'img error': 'mdi mdi-close-circle color-red-7',
|
||||
// 'img statusbar-ok': 'mdi mdi-check-circle color-on-statusbar-green',
|
||||
|
||||
'img archive': 'mdi mdi-table color-gold-7',
|
||||
|
||||
@@ -24,7 +24,7 @@ export default function ErrorMessageModal({ modalState, title = 'Error', message
|
||||
<ModalContent>
|
||||
<Wrapper>
|
||||
<IconWrapper>
|
||||
<FontIcon icon="img red-error" />
|
||||
<FontIcon icon="img error" />
|
||||
</IconWrapper>
|
||||
{message}
|
||||
</Wrapper>
|
||||
|
||||
@@ -19,7 +19,7 @@ const ContainerSmall = styled.div`
|
||||
margin-right: 10px;
|
||||
`;
|
||||
|
||||
export default function ErrorInfo({ message, icon = 'img red-error', isSmall = false }) {
|
||||
export default function ErrorInfo({ message, icon = 'img error', isSmall = false }) {
|
||||
if (isSmall) {
|
||||
return (
|
||||
<ContainerSmall>
|
||||
|
||||
Reference in New Issue
Block a user