Skip to content

Commit

Permalink
fix(web2): DHCP renew button is now disabled except in WAN/LAN mode u…
Browse files Browse the repository at this point in the history
…sing dhcp [backport release-5.3.0] (#4659)

fix(web2): DHCP renew button is now disabled except in WAN/LAN mode using dhcp (#4655)

DHCP renew button is disabled except in WAN/LAN mode using dhcp

(cherry picked from commit 1d6aa55)

Co-authored-by: Salvatore Coppola <[email protected]>
  • Loading branch information
github-actions[bot] and salvatore-coppola authored May 17, 2023
1 parent d2e0155 commit 3995058
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,8 @@ public void onSuccess(List<GwtNetInterfaceConfig> result) {

private void showMultipleWanModal(List<GwtNetInterfaceConfig> configs) {
for (GwtNetInterfaceConfig config : configs) {
if (config.getStatusEnum().equals(GwtNetIfStatus.netIPv4StatusEnabledWAN) && !config
.getName().equals(TabTcpIpUi.this.selectedNetIfConfig.getName())) {
if (config.getStatusEnum().equals(GwtNetIfStatus.netIPv4StatusEnabledWAN)
&& !config.getName().equals(TabTcpIpUi.this.selectedNetIfConfig.getName())) {
logger.log(Level.SEVERE, "Error: Status Invalid");
TabTcpIpUi.this.wanModal.show();
break;
Expand Down Expand Up @@ -804,6 +804,7 @@ private void refreshForm() {
this.subnet.setText("");
this.gateway.setText("");
this.dns.setText("");
this.renew.setEnabled(false);
} else {
String configureValue = this.configure.getSelectedValue();
if (configureValue.equals(IPV4_MODE_DHCP_MESSAGE)) {
Expand Down

0 comments on commit 3995058

Please sign in to comment.