mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-15 05:08:26 +00:00
FS-7998 #resolve Simply don't ask.
FS-7998 Add option to settings interface and persist it on local storage.
This commit is contained in:
parent
aa0bbe84af
commit
070c89996e
@ -283,17 +283,24 @@ vertoControllers.controller('MainController', ['$scope', '$rootScope',
|
|||||||
});
|
});
|
||||||
|
|
||||||
$rootScope.$on('page.incall', function(event, data) {
|
$rootScope.$on('page.incall', function(event, data) {
|
||||||
prompt({
|
if (storage.data.askRecoverCall) {
|
||||||
title: 'Oops, Active Call in Course.',
|
prompt({
|
||||||
message: 'It seems you were in a call before leaving the last time. Wanna go back to that?'
|
title: 'Oops, Active Call in Course.',
|
||||||
}).then(function() {
|
message: 'It seems you were in a call before leaving the last time. Wanna go back to that?'
|
||||||
|
}).then(function() {
|
||||||
|
verto.changeData(storage);
|
||||||
|
console.log('redirect to incall page');
|
||||||
|
$location.path('/incall');
|
||||||
|
}, function() {
|
||||||
|
storage.data.userStatus = 'connecting';
|
||||||
|
verto.hangup();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
verto.changeData(storage);
|
verto.changeData(storage);
|
||||||
console.log('redirect to incall page');
|
console.log('redirect to incall page');
|
||||||
$location.path('/incall');
|
$location.path('/incall');
|
||||||
}, function() {
|
}
|
||||||
storage.data.userStatus = 'connecting';
|
|
||||||
verto.hangup();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$rootScope.callActive = function(data) {
|
$rootScope.callActive = function(data) {
|
||||||
|
@ -34,7 +34,8 @@ storageService.service('storage', ['$rootScope', '$localStorage',
|
|||||||
mirrorInput: '',
|
mirrorInput: '',
|
||||||
outgoingBandwidth: '',
|
outgoingBandwidth: '',
|
||||||
incomingBandwidth: '',
|
incomingBandwidth: '',
|
||||||
vidQual: ''
|
vidQual: '',
|
||||||
|
askRecoverCall: true
|
||||||
});
|
});
|
||||||
|
|
||||||
function changeData(verto_data) {
|
function changeData(verto_data) {
|
||||||
|
@ -58,6 +58,12 @@
|
|||||||
Scale Remote Video To Match Camera Resolution
|
Scale Remote Video To Match Camera Resolution
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="checkbox">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" name="ask_recover_call" ng-value="storage.data.askRecoverCall" ng-model="storage.data.askRecoverCall">
|
||||||
|
Ask before recovering call
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user