Changeset 0531801
- Timestamp:
- May 13, 2019 2:44:35 PM (2 years ago)
- Branches:
- master
- Children:
- 4e267f6
- Parents:
- 8840532
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigClientsHelper.java
r8840532 r0531801 141 141 boolean showStart; 142 142 boolean showStop; 143 boolean showEdit; 143 144 if (isConsole) { 144 145 showStart = false; 145 146 showStop = false; 147 showEdit = true; 146 148 } else { 147 149 ClientApp clientApp = _context.routerAppManager().getClientApp(ca.className, LoadClientAppsJob.parseArgs(ca.args)); 148 150 showStart = clientApp == null; 149 151 showStop = clientApp != null && clientApp.getState() == ClientAppState.RUNNING; 152 showEdit = !showStop && (clientApp == null || clientApp.getState() != ClientAppState.STARTING); 150 153 } 151 154 String scur = Integer.toString(cur); … … 162 165 allowEdit && scur.equals(_edit), 163 166 // show edit button, show update button 164 // Don't allow edit if it's running, or else we would lose the "handle" to the ClientApp to stop it. 165 allowEdit && !showStop, false, 167 // Don't allow edit if it's running or starting, or else we would lose the "handle" to the ClientApp to stop it. 168 allowEdit && showEdit, 169 false, 166 170 // show stop button 167 171 showStop,
Note: See TracChangeset
for help on using the changeset viewer.