We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bd66da commit 9d5e52aCopy full SHA for 9d5e52a
assets/webconfig/js/ui_utils.js
@@ -94,6 +94,13 @@ function getFirstConfiguredInstance() {
94
95
return configuredInstance ? configuredInstance.instance : null; // Return instance number or null if none exists
96
}
97
+function getConfiguredInstances() {
98
+ const instances = window.serverInfo?.instance || [];
99
+ const list = Array.isArray(instances) ? instances : Object.values(instances);
100
+ return list
101
+ .filter((inst) => typeof inst.instance !== 'undefined')
102
+ .map((inst) => inst.instance);
103
+}
104
105
function doesInstanceExist(instanceId) {
106
0 commit comments