Skip to content

Commit

Permalink
Revert "add modal that shows running config and generated config for …
Browse files Browse the repository at this point in the history
…a device"

should be in branch

This reverts commit 6d5253c.
  • Loading branch information
indy-independence committed Jul 4, 2024
1 parent 6d5253c commit 1df8ada
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 290 deletions.
40 changes: 0 additions & 40 deletions public/components/DeviceList/DeviceList.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { deleteData } from "../../utils/sendData";
import DeviceInfoBlock from "./DeviceInfoBlock";
import AddMgmtDomainModal from "./AddMgmtDomainModal";
import UpdateMgmtDomainModal from "./UpdateMgmtDomainModal";
import ShowConfigModal from "./ShowConfigModal";

const io = require("socket.io-client");

Expand Down Expand Up @@ -59,9 +58,6 @@ class DeviceList extends React.Component {
mgmtUpdateModalInput: {},
mgmtAddModalInput: {},
mgmtDomainsData: [],
showConfigModalOpen: false,
showConfigModalHostname: null,
showConfigModalState: null,
};

discovered_device_ids = new Set();
Expand Down Expand Up @@ -844,22 +840,6 @@ class DeviceList extends React.Component {
});
}

showConfigModalOpen(hostname, state) {
this.setState({
showConfigModalOpen: true,
showConfigModalHostname: hostname,
showConfigModalState: state,
});
}

showConfigModalClose() {
this.setState({
showConfigModalOpen: false,
showConfigModalHostname: null,
showConfigModalState: null,
});
}

changeStateAction(device_id, state) {
console.log(`Change state for device_id: ${device_id}`);
const credentials = localStorage.getItem("token");
Expand Down Expand Up @@ -1005,13 +985,6 @@ class DeviceList extends React.Component {
text="Make unmanaged"
onClick={() => this.changeStateAction(device.id, "UNMANAGED")}
/>,
<Dropdown.Item
key="showconfig"
text="Show configuration"
onClick={() =>
this.showConfigModalOpen(device.hostname, device.state)
}
/>,
<Dropdown.Item
key="delete"
text="Delete device..."
Expand Down Expand Up @@ -1046,13 +1019,6 @@ class DeviceList extends React.Component {
text="Make managed"
onClick={() => this.changeStateAction(device.id, "MANAGED")}
/>,
<Dropdown.Item
key="showconfig"
text="Show configuration"
onClick={() =>
this.showConfigModalOpen(device.hostname, device.state)
}
/>,
<Dropdown.Item
key="delete"
text="Delete device..."
Expand Down Expand Up @@ -1385,12 +1351,6 @@ class DeviceList extends React.Component {
onDelete={(v) => this.handleDeleteMgmtDomain(v)}
onUpdate={(v) => this.handleUpdateMgmtDomains(v)}
/>
<ShowConfigModal
hostname={this.state.showConfigModalHostname}
state={this.state.showConfigModalState}
isOpen={this.state.showConfigModalOpen}
closeAction={() => this.showConfigModalClose()}
/>
<div className="table_options">
<Popup
on="click"
Expand Down
235 changes: 0 additions & 235 deletions public/components/DeviceList/ShowConfigModal.js

This file was deleted.

15 changes: 0 additions & 15 deletions public/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,6 @@ progress::-moz-progress-bar {
font-size: 80%;
}

.fullconfig {
overflow-x: scroll;
}

/* log output styles */
.logoutput {
overflow-y: scroll;
Expand All @@ -382,14 +378,3 @@ progress::-moz-progress-bar {
.job_ticket_ref {
width: 15em;
}

/* Workaround for an unfixed bug with Loaders not showing up properly in Modals
* https://github.com/Semantic-Org/Semantic-UI-React/issues/3133
*/
.ui.dimmer .ui.modalloader.loader:before {
border-color: rgba(0, 0, 0, 0.1);
}

.ui.dimmer .ui.modalloader.loader:after {
border-color: #767676 transparent transparent;
}

0 comments on commit 1df8ada

Please sign in to comment.