Skip to content

Commit

Permalink
client: add reset leases btn
Browse files Browse the repository at this point in the history
  • Loading branch information
ainar-g committed Jun 16, 2021
1 parent 84e71e9 commit a97df17
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
1 change: 1 addition & 0 deletions client/src/__locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"dhcp_new_static_lease": "New static lease",
"dhcp_static_leases_not_found": "No DHCP static leases found",
"dhcp_add_static_lease": "Add static lease",
"dhcp_reset_leases": "Reset all leases",
"dhcp_reset": "Are you sure you want to reset the DHCP configuration?",
"country": "Country",
"city": "City",
Expand Down
26 changes: 16 additions & 10 deletions client/src/components/Settings/Dhcp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,16 +269,22 @@ const Dhcp = () => {
processingDeleting={processingDeleting}
cidr={cidr}
/>
</div>
<div className="col-12">
<button
type="button"
className="btn btn-success btn-standard mt-3"
onClick={toggleModal}
disabled={disabledLeasesButton}
>
<Trans>dhcp_add_static_lease</Trans>
</button>
<div className="btn-list mt-2">
<button
type="button"
className="btn btn-success btn-standard mt-3"
onClick={toggleModal}
disabled={disabledLeasesButton}
>
<Trans>dhcp_add_static_lease</Trans>
</button>
<button
type="button"
className="btn btn-secondary btn-standard mt-3"
>
<Trans>dhcp_reset_leases</Trans>
</button>
</div>
</div>
</div>
</Card>
Expand Down

0 comments on commit a97df17

Please sign in to comment.