8000 Change color of Button for add plugin and add icon for delete plugin … · corner4world/rclone-webui-react@88c76e3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 88c76e3

Browse files
committed
Change color of Button for add plugin and add icon for delete plugin button.
1 parent 5e9df67 commit 88c76e3

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

src/views/PluginDashboard/PluginDashboard.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,16 @@ class PluginDashboard extends React.Component {
2525
<Row>
2626
<Col lg={12} className="mb-4 d-flex justify-content-between">
2727
<NewPluginModal buttonLabel="Add New" okHandle={this.addPluginHandle}/>
28-
<Button onClick={() => this.props.history.push("/storeDashboard")}>
28+
<Button color="primary" onClick={() => this.props.history.push("/storeDashboard")}>
2929
Visit Store
3030
</Button>
3131
</Col>
3232
</Row>
3333
<Table responsive className="table-striped">
3434
<thead>
3535
<tr>
36-
<th>Author/ Name</th>
36+
<th>Name</th>
37+
<th>Author</th>
3738
<th>Description</th>
3839
<th>Actions</th>
3940
</tr>

src/views/PluginDashboard/PluginRowEntries.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ import {Button} from "reactstrap";
44
import axiosInstance from "../../utils/API/API";
55
import {toast} from "react-toastify";
66

7-
const deactivatePlugin = (item) => {
8-
9-
}
10-
11-
127
function PluginRowEntries({loadedPlugins, getPlugins}) {
138
const [isLoading, setIsLoading] = useState(false);
149
const removePlugin = (key) => {
@@ -32,13 +27,13 @@ function PluginRowEntries({loadedPlugins, getPlugins}) {
3227
entries.push(
3328
<tr key={key}>
3429
<td>{value.name}</td>
30+
<td>{value.author}</td>
3531
<td>{value.description}</td>
3632
<td>
3733
{isLoading ? "Installing..." :
3834
<>
39-
<Button color="primary">Deactivate</Button>
40-
<Button color={"danger"} className="ml-2" onClick={() => removePlugin(key)}>Delete</Button>
41-
35+
<Button color={"danger"} className="ml-2" onClick={() => removePlugin(key)}><span
36+
className="fa fa-trash pr-1"/>Delete</Button>
4237
</>
4338
}
4439
</td>

0 commit comments

Comments
 (0)
0