From 222e69fbf45c03d992e70922746e5a5f54289e76 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 29 Jul 2024 16:37:02 +0200 Subject: [PATCH] chore: import TableEditor directly from layer --- umap/static/umap/js/modules/data/layer.js | 3 ++- umap/static/umap/js/modules/global.js | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/umap/static/umap/js/modules/data/layer.js b/umap/static/umap/js/modules/data/layer.js index 65689299..4e7ebe49 100644 --- a/umap/static/umap/js/modules/data/layer.js +++ b/umap/static/umap/js/modules/data/layer.js @@ -19,6 +19,7 @@ import { import { translate } from '../i18n.js' import { DataLayerPermissions } from '../permissions.js' import { Point, LineString, Polygon } from './features.js' +import TableEditor from '../tableeditor.js' export const LAYER_TYPES = [DefaultLayer, Cluster, Heat, Choropleth, Categorized] @@ -1090,7 +1091,7 @@ export class DataLayer { tableEdit() { if (!this.isVisible()) return - const editor = new U.TableEditor(this) + const editor = new TableEditor(this) editor.open() } diff --git a/umap/static/umap/js/modules/global.js b/umap/static/umap/js/modules/global.js index ca9fe1c1..a6c2b341 100644 --- a/umap/static/umap/js/modules/global.js +++ b/umap/static/umap/js/modules/global.js @@ -22,7 +22,6 @@ import Slideshow from './slideshow.js' import { SyncEngine } from './sync/engine.js' import Dialog from './ui/dialog.js' import { EditPanel, FullPanel, Panel } from './ui/panel.js' -import TableEditor from './tableeditor.js' import Tooltip from './ui/tooltip.js' import URLs from './urls.js' import * as Utils from './utils.js' @@ -72,7 +71,6 @@ window.U = { Share, Slideshow, SyncEngine, - TableEditor, Tooltip, URLs, Utils,