Changeset 5d10041


Ignore:
Timestamp:
Dec 8, 2018 2:30:04 PM (22 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d382f12
Parents:
b946bb0
Message:

Console: Hide I2CP config if disabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/jsp/configi2cp.jsp

    rb946bb0 r5d10041  
    4444<label><input type="radio" class="optbox" name="mode" value="2" <%=clientshelper.i2cpModeChecked(2) %> >
    4545<%=intl._t("Enabled with SSL required")%></label><br>
    46 <label><input type="radio" class="optbox" name="mode" value="0" <%=clientshelper.i2cpModeChecked(0) %> >
     46<%
     47    // returns nonempty string if disabled
     48    String disableChecked = clientshelper.i2cpModeChecked(0);
     49    boolean isDisabled = disableChecked.length() > 0;
     50%>
     51<label><input type="radio" class="optbox" name="mode" value="0" <%=disableChecked%> >
    4752<%=intl._t("Disabled - Clients outside this Java process may not connect")%></label><br>
    4853</td></tr>
     54<%
     55    if (!isDisabled) {
     56%>
    4957<tr><td>
    5058<b><%=intl._t("I2CP Interface")%>:</b>
     
    7886<input name="nofilter_pw" type="password" value="" />
    7987</td></tr>
     88<%
     89    } // !isDisabled
     90%>
    8091<tr><td class="optionsave" align="right">
    8192<input type="submit" class="default" name="action" value="<%=intl._t("Save Interface Configuration")%>" />
Note: See TracChangeset for help on using the changeset viewer.