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