Skip to content

Commit 542474b

Browse files
Clean up ResourceCloningIndicator buttons
1 parent bde68da commit 542474b

File tree

1 file changed

+0
-30
lines changed
  • geonode_mapstore_client/client/js/plugins/ActionNavbar

1 file changed

+0
-30
lines changed

geonode_mapstore_client/client/js/plugins/ActionNavbar/buttons.jsx

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ import { exportDataResultsControlEnabledSelector, checkingExportDataEntriesSelec
3131
import { currentLocaleSelector } from '@mapstore/framework/selectors/locale';
3232
import { checkExportDataEntries, removeExportDataResult } from '@mapstore/framework/actions/layerdownload';
3333
import ExportDataResultsComponent from '@mapstore/framework/components/data/download/ExportDataResultsComponent';
34-
import FlexBox from '@mapstore/framework/components/layout/FlexBox';
35-
import Spinner from '@mapstore/framework/components/layout/Spinner';
36-
import { getCurrentResourceCopyLoading, getCurrentResourceClonedUrl } from '@js/selectors/resourceservice';
3734

3835
// buttons override to use in ActionNavbar for plugin imported from mapstore
3936

@@ -196,30 +193,3 @@ export const AddWidgetActionButton = connect(
196193
</Button>
197194
);
198195
});
199-
200-
export const ResourceCloningIndicator = connect(
201-
(state) => ({
202-
isCopying: getCurrentResourceCopyLoading(state),
203-
clonedResourceUrl: getCurrentResourceClonedUrl(state)
204-
})
205-
)(({ isCopying, clonedResourceUrl }) => {
206-
const className = 'text-primary ms-text _font-size-sm _strong';
207-
if (isCopying) {
208-
return (
209-
<FlexBox centerChildrenVertically gap="xs" className={className}>
210-
<Spinner />
211-
<Message msgId="gnviewer.cloning" />
212-
</FlexBox>
213-
);
214-
}
215-
216-
if (clonedResourceUrl) {
217-
return (
218-
<a href={clonedResourceUrl} className={className}>
219-
<Message msgId="gnviewer.navigateToClonedResource" />
220-
</a>
221-
);
222-
}
223-
224-
return null;
225-
});

0 commit comments

Comments
 (0)