Localhost has been granted administrator privileges to this domain. (Localhost is anyuser on the same machine as the Vircadia Server)
+
Localhost has been granted administrator privileges to this domain. (Localhost is anyuser on the same machine as the Vircadia server)
@@ -186,7 +186,37 @@
-
+
+
+
+
+
+
+
+
+
+
+ Would you like use automatic threading for your server's avatars and audio?
+ If you are hosting this server on your local computer and it is not very powerful, then consider leaving this off because the server will use more resources if it is being utilized extensively, thereby slowing down your computer.
+ If you are running this server on a powerful system and intend to have a large audience, then turn this setting on.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -201,7 +231,7 @@
-
You have successfully setup and configured your cloud hosted domain.
+
You have successfully setup and configured your Vircadia domain.
diff --git a/domain-server/resources/web/wizard/js/wizard.js b/domain-server/resources/web/wizard/js/wizard.js
index 800bc1cb33..2603eca5c6 100644
--- a/domain-server/resources/web/wizard/js/wizard.js
+++ b/domain-server/resources/web/wizard/js/wizard.js
@@ -52,10 +52,14 @@ $(document).ready(function(){
saveAccessToken();
});
});
-
- $('body').on('click', '#save-permissions', function() {
- savePermissions();
- });
+
+ $('body').on('click', '#save-permissions', function() {
+ savePermissions();
+ });
+
+ $('body').on('click', '#save-threading-settings', function() {
+ saveThreadingSettings();
+ });
function triggerSaveUsernamePassword(event) {
if (event.keyCode === 13) {
@@ -151,7 +155,7 @@ function setupWizardSteps() {
$('#admin-description').html('Add more Metaverse usernames');
} else {
$('.cloud-only').remove();
- $('#save-permissions').text("Finish");
+ $('#save-threading-settings').text("Finish");
steps = $('.wizard-step');
$(steps).each(function(i) {
@@ -260,10 +264,6 @@ function goToNextStep() {
var currentStep = $('body').find('.wizard-step:visible');
var nextStep = currentStep.next('.wizard-step');
- var formJSON = {
- "wizard": {}
- }
-
if (nextStep.length > 0) {
currentStep.hide();
nextStep.show();
@@ -521,7 +521,29 @@ function saveUsernamePassword() {
$(this).blur();
// POST the form JSON to the domain-server settings.json endpoint so the settings are saved
- postSettings(formJSON, function() {
- location.reload();
- });
+ postSettings(formJSON, goToNextStep);
+}
+
+function saveThreadingSettings() {
+ var enable_automatic_threading = $("#enable-automatic-threading").prop("checked");
+
+ currentStepNumber += 1;
+
+ var formJSON = {
+ "audio_threading": {
+ "auto_threads": enable_automatic_threading
+ },
+ "avatar_mixer": {
+ "auto_threads": enable_automatic_threading
+ },
+ "wizard": {
+ "steps_completed": currentStepNumber.toString()
+ }
+ }
+
+ // remove focus from the button
+ $(this).blur();
+
+ // POST the form JSON to the domain-server settings.json endpoint so the settings are saved
+ postSettings(formJSON, goToNextStep);
}