Showing error modal when clicking hotspot toggle on Docker.

This commit is contained in:
Roland 2022-10-22 14:27:18 -06:00
parent 1230a3056d
commit d28797326b
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
6 changed files with 178 additions and 56 deletions

View file

@ -1,4 +1,4 @@
import React, {useContext} from "react";
import React, {useContext, useState} from "react";
import {clearCompletedDownloads, clearFailedDownloads, killDownload, postDownload} from "../../api";
import {Link} from "react-router-dom";
import {
@ -9,6 +9,7 @@ import {
WROLModeMessage
} from "../Common";
import {
Button as SemanticButton,
Confirm,
Modal,
PlaceholderLine,
@ -18,7 +19,7 @@ import {
TableHeaderCell,
TableRow
} from "semantic-ui-react";
import {Button, Header, Placeholder, Table} from "../Theme";
import {Button, Header, Icon, Placeholder, Table} from "../Theme";
import {ThemeContext} from "../../contexts/contexts";
import {useDownloads} from "../../hooks/customHooks";
@ -113,7 +114,7 @@ class DownloadRow extends React.Component {
<pre style={{overflowX: 'scroll'}}>{error}</pre>
</Modal.Content>
<Modal.Actions>
<Button onClick={() => this.setState({errorModalOpen: false})}>Close</Button>
<SemanticButton onClick={() => this.setState({errorModalOpen: false})}>Close</SemanticButton>
</Modal.Actions>
</Modal>;