Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cphelefu committed Feb 26, 2024
1 parent 447d7fa commit 65fafa8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ export function LayerIcon({ layer }: LayerIconProps): JSX.Element {
if (layer.layerStatus === 'error' || ('queryStatus' in layer && layer.queryStatus === 'error')) {
return <ErrorIcon color="error" />;
}
if (layer.layerStatus === 'processing' || layer.layerStatus === 'loading' || ('queryStatus' in layer && layer.queryStatus === 'processing')) {
if (
layer.layerStatus === 'processing' ||
layer.layerStatus === 'loading' ||
('queryStatus' in layer && layer.queryStatus === 'processing')
) {
return (
<Box sx={{ padding: '5px', marginRight: '10px' }}>
<CircularProgressBase size={20} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ const LayerListItem = memo(function LayerListItem({ isSelected, layer, onListIte
case 'init':
case 'processing':
return `${t('layers.querying')}...`;
case 'error':
return t('legend.layerError');
case 'error':
return t('legend.layerError');
default:
return (
<>
Expand Down
1 change: 1 addition & 0 deletions packages/geoview-core/src/core/utils/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function _addNotification(mapId: string, type: NotificationType = 'info', messag
key: generateId(),
notificationType: type,
message,
count: 1,
};

// ? Need to do lazy import, if not viewer crashes (AppEventProcessor.addAppNotification(mapId, notification));
Expand Down

0 comments on commit 65fafa8

Please sign in to comment.