Skip to content

Commit

Permalink
Fixes to geoengine_renderer.esm.js
Browse files Browse the repository at this point in the history
  • Loading branch information
filipc96 authored Jan 18, 2024
1 parent 0d69a3b commit 679d6dc
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ import {LayersPanel} from "../layers_panel/layers_panel.esm";
import {RecordsPanel} from "../records_panel/records_panel.esm";
import {rasterLayersStore} from "../../../raster_layers_store.esm";
import {vectorLayersStore} from "../../../vector_layers_store.esm";
import {useService} from "@web/core/utils/hooks";
import {useService, useOwnedDialogs} from "@web/core/utils/hooks";
import {registry} from "@web/core/registry";
import {RelationalModel} from "@web/views/relational_model";
import {evaluateExpr} from "@web/core/py_js/py";

import { useOwnedDialogs } from "@web/core/utils/hooks";
import { ConfirmationDialog } from "@web/core/confirmation_dialog/confirmation_dialog";
import { FormViewDialog } from "@web/views/view_dialogs/form_view_dialog";

Expand Down Expand Up @@ -592,7 +591,7 @@ export class GeoengineRenderer extends Component {
}
} else {
this.overlay.setVisible(false);
body = "No geometry. Would you like to add geometry?";
const body = "No geometry. Would you like to add geometry?";
this.openConformationDialog(body, () => this.openEditRecord(record));
}
}
Expand All @@ -617,7 +616,9 @@ export class GeoengineRenderer extends Component {
const conformationDialogProps = {
body: this.env._t(body),
confirm: callback,
cancel: () => {},
cancel: () => {
return;
},
};

this.addDialog(ConfirmationDialog, conformationDialogProps);
Expand Down Expand Up @@ -1295,4 +1296,4 @@ GeoengineRenderer.props = {
createRecord: {type: Function},
onDrawStart: {type: Function},
};
GeoengineRenderer.components = {LayersPanel, GeoengineRecord, RecordsPanel};
GeoengineRenderer.components = {LayersPanel, GeoengineRecord, RecordsPanel};

0 comments on commit 679d6dc

Please sign in to comment.