mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 23:24:18 +00:00
FS-8178 - [verto_communicator] Define first share device selected by default in settings modal
This commit is contained in:
1 parent
944bad6708
commit
da0b7c6152
1 file changed
+5
-1
@@ -206,6 +206,10 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
|
|||||||
}];
|
}];
|
||||||
data.audioDevices = [];
|
data.audioDevices = [];
|
||||||
|
|
||||||
|
if(!storage.data.selectedShare) {
|
||||||
|
storage.data.selectedShare = data.shareDevices[0]['id'];
|
||||||
|
}
|
||||||
|
|
||||||
for (var i in jQuery.verto.videoDevices) {
|
for (var i in jQuery.verto.videoDevices) {
|
||||||
var device = jQuery.verto.videoDevices[i];
|
var device = jQuery.verto.videoDevices[i];
|
||||||
if (!device.label) {
|
if (!device.label) {
|
||||||
@@ -505,7 +509,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
|
|||||||
cleanShareCall(that);
|
cleanShareCall(that);
|
||||||
} else {
|
} else {
|
||||||
if (data.conf) {
|
if (data.conf) {
|
||||||
data.liveArray.destroy();
|
data.liveArray.destroy();
|
||||||
data.conf.destroy();
|
data.conf.destroy();
|
||||||
}
|
}
|
||||||
cleanCall();
|
cleanCall();
|
||||||
|
|||||||
Reference in new issue
Block a user