Skip to content

Commit

Permalink
Merge pull request #1576 from HeDo88TH/dronedb-plugin-fix
Browse files Browse the repository at this point in the history
Dronedb plugin fix
  • Loading branch information
pierotofy authored Jan 3, 2025
2 parents 66e60e7 + 992e6bb commit 8dac058
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions coreplugins/cloudimport/public/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"react-bootstrap": "^0.32.4",
"react-select": "^3.0.4"
"react-bootstrap": "0.32.4",
"react-select": "3.0.4"
}
}
4 changes: 2 additions & 2 deletions coreplugins/dronedb/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "DroneDB",
"webodmMinVersion": "1.1.2",
"description": "Integrate WebODM with DroneDB: import images and share results",
"version": "0.0.1",
"version": "0.0.2",
"author": "Luca Di Leo",
"email": "ldileo@digipa.it",
"email": "support@dronedb.app",
"repository": "https://github.com/OpenDroneMap/WebODM",
"tags": ["ddb", "DroneDB", "cloud"],
"homepage": "https://github.com/OpenDroneMap/WebODM",
Expand Down
14 changes: 10 additions & 4 deletions coreplugins/dronedb/public/components/ConfigureNewTaskDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ import "./ConfigureNewTaskDialog.scss";

export default class ConfigureNewTaskDialog extends Component {
static defaultProps = {

};
static propTypes = {
onHide: PropTypes.func.isRequired,
onSaveTask: PropTypes.func.isRequired,
ddbRes: PropTypes.object,
ddbRes: PropTypes.object,
}


handleTaskName = () => {
return new Promise((resolve) => {
resolve(ddbRes ? ddbRes.name : null);
});
}

render() {
const {
onHide,
Expand All @@ -36,7 +42,7 @@ export default class ConfigureNewTaskDialog extends Component {
filesCount={ddbRes ? ddbRes.images_count : 0}
getFiles={() => []}
showResize={false}
suggestedTaskName={ddbRes ? ddbRes.name : null}
suggestedTaskName={this.handleTaskName}
/>
</Modal.Body>
</Modal>
Expand Down
4 changes: 2 additions & 2 deletions coreplugins/dronedb/public/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"react-bootstrap": "^0.32.4",
"react-select": "^3.0.4"
"react-bootstrap": "0.32.4",
"react-select": "3.0.4"
}
}

0 comments on commit 8dac058

Please sign in to comment.