fixes #21 - Need system update level in dashboard
This commit is contained in:
parent
dad41a224f
commit
02bfec8cc7
|
@ -15,6 +15,14 @@
|
||||||
<input type="checkbox" id="chkRunAtStartup" name="chkRunAtStartup" />
|
<input type="checkbox" id="chkRunAtStartup" name="chkRunAtStartup" />
|
||||||
<label for="chkRunAtStartup">Run server at startup</label>
|
<label for="chkRunAtStartup">Run server at startup</label>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="selectAutomaticUpdateLevel">Automatic update level</label>
|
||||||
|
<select name="selectAutomaticUpdateLevel" id="selectAutomaticUpdateLevel">
|
||||||
|
<option value="Release">Official Release</option>
|
||||||
|
<option value="Beta">Beta</option>
|
||||||
|
<option value="Dev">Dev</option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="txtPortNumber">Http server port number: </label>
|
<label for="txtPortNumber">Http server port number: </label>
|
||||||
<input type="number" id="txtPortNumber" name="txtPortNumber" pattern="[0-9]*" required="required" min="1" />
|
<input type="number" id="txtPortNumber" name="txtPortNumber" pattern="[0-9]*" required="required" min="1" />
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
$('#fldWebSocketPortNumber', page).show();
|
$('#fldWebSocketPortNumber', page).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('#selectAutomaticUpdateLevel', page).val(config.SystemUpdateLevel).selectmenu('refresh');
|
||||||
$('#txtWebSocketPortNumber', page).val(config.LegacyWebSocketPortNumber);
|
$('#txtWebSocketPortNumber', page).val(config.LegacyWebSocketPortNumber);
|
||||||
|
|
||||||
$('#txtPortNumber', page).val(config.HttpServerPortNumber);
|
$('#txtPortNumber', page).val(config.HttpServerPortNumber);
|
||||||
|
@ -51,6 +52,7 @@
|
||||||
|
|
||||||
config.EnableDeveloperTools = $('#chkEnableDeveloperTools', form).checked();
|
config.EnableDeveloperTools = $('#chkEnableDeveloperTools', form).checked();
|
||||||
config.RunAtStartup = $('#chkRunAtStartup', form).checked();
|
config.RunAtStartup = $('#chkRunAtStartup', form).checked();
|
||||||
|
config.SystemUpdateLevel = $('#selectAutomaticUpdateLevel', form).val();
|
||||||
|
|
||||||
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
|
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user