diff --git a/plugins/cloudimport/public/ImportView.jsx b/plugins/cloudimport/public/ImportView.jsx index be7781a9..adc9b434 100644 --- a/plugins/cloudimport/public/ImportView.jsx +++ b/plugins/cloudimport/public/ImportView.jsx @@ -1,12 +1,12 @@ import React, { Component, Fragment } from "react"; import PropTypes from 'prop-types'; -import ErrorMessage from "webodm/components/ErrorMessage"; import ResizeModes from 'webodm/classes/ResizeModes'; import PlatformSelectButton from "./components/PlatformSelectButton"; import PlatformDialog from "./components/PlatformDialog"; import LibraryDialog from "./components/LibraryDialog"; +import ErrorDialog from "./components/ErrorDialog"; import ConfigureNewTaskDialog from "./components/ConfigureNewTaskDialog"; export default class TaskView extends Component { @@ -90,7 +90,7 @@ export default class TaskView extends Component { return ( {error ? - + : ""} this.setState({show: false}); + + render() { + const { errorMessage } = this.props; + + return ( + + + + There was an error with Cloud Import :( + + + + { errorMessage } + + + ); + } +} diff --git a/plugins/cloudimport/public/components/ErrorDialog.scss b/plugins/cloudimport/public/components/ErrorDialog.scss new file mode 100644 index 00000000..4913baff --- /dev/null +++ b/plugins/cloudimport/public/components/ErrorDialog.scss @@ -0,0 +1,3 @@ +.modal-backdrop { + z-index: 100000 !important; +}