mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
Fix unbind actions on address selection
This commit is contained in:
parent
60ce290f1d
commit
3dace0cc35
3 changed files with 35 additions and 20 deletions
|
|
@ -58,28 +58,35 @@ DialogPlus {
|
|||
SipAddressesView {
|
||||
anchors.fill: parent
|
||||
|
||||
function launchVideoCall(sipAddress){
|
||||
CallsListModel.launchVideoCall(sipAddress)
|
||||
exit(1)
|
||||
}
|
||||
function launchAudioCall(sipAddress){
|
||||
CallsListModel.launchAudioCall(sipAddress, "")
|
||||
exit(1)
|
||||
}
|
||||
|
||||
actions: [{
|
||||
icon: 'video_call',
|
||||
secure:0,
|
||||
visible:true,
|
||||
handler: function (entry) {
|
||||
handlerSipAddress(entry.sipAddress)
|
||||
launchVideoCall(entry.sipAddress)
|
||||
},
|
||||
visible: SettingsModel.videoSupported && SettingsModel.showStartVideoCallButton,
|
||||
handlerSipAddress: function(sipAddress) {
|
||||
CallsListModel.launchVideoCall(sipAddress)
|
||||
exit(1)
|
||||
launchVideoCall(sipAddress)
|
||||
}
|
||||
}, {
|
||||
icon: 'call',
|
||||
secure:0,
|
||||
visible:true,
|
||||
handler: function (entry) {
|
||||
handlerSipAddress(entry.sipAddress)
|
||||
launchAudioCall(entry.sipAddress)
|
||||
},
|
||||
handlerSipAddress: function(sipAddress) {
|
||||
CallsListModel.launchAudioCall(sipAddress, "")
|
||||
exit(1)
|
||||
launchAudioCall(sipAddress)
|
||||
}
|
||||
}]
|
||||
|
||||
|
|
|
|||
|
|
@ -79,21 +79,23 @@ DialogPlus {
|
|||
SipAddressesView {
|
||||
anchors.fill: parent
|
||||
|
||||
|
||||
function transfer(sipAddress){
|
||||
if (attended) {
|
||||
var call = CallsListModel.launchAudioCall(sipAddress, callTransfer.call.peerAddress)
|
||||
} else {
|
||||
callTransfer.call.transferTo(sipAddress)
|
||||
}
|
||||
exit(1)
|
||||
}
|
||||
actions: [{
|
||||
icon: 'transfer',
|
||||
secure: 0,
|
||||
visible: true,
|
||||
handler: function (entry) {
|
||||
handlerSipAddress(entry.sipAddress)
|
||||
},
|
||||
handlerSipAddress: function(sipAddress){
|
||||
if (attended) {
|
||||
var call = CallsListModel.launchAudioCall(sipAddress, callTransfer.call.peerAddress)
|
||||
} else {
|
||||
callTransfer.call.transferTo(sipAddress)
|
||||
}
|
||||
exit(1)
|
||||
transfer(sipAddress)
|
||||
},
|
||||
handler: function (entry) {
|
||||
transfer(entry.sipAddress)
|
||||
}
|
||||
|
||||
}]
|
||||
|
|
|
|||
|
|
@ -92,15 +92,18 @@ DialogPlus {
|
|||
SipAddressesView {
|
||||
anchors.fill: parent
|
||||
|
||||
function transfer(sipAddress){
|
||||
conferenceHelperModel.toAdd.addToConference(sipAddress)
|
||||
}
|
||||
actions: [{
|
||||
icon: 'transfer',
|
||||
secure:0,
|
||||
visible: true,
|
||||
handler: function (entry) {
|
||||
handlerSipAddress(entry.sipAddress)
|
||||
transfer(entry.sipAddress)
|
||||
},
|
||||
handerSipAddress: function(sipAddress){
|
||||
conferenceHelperModel.toAdd.addToConference(sipAddress)
|
||||
transfer(sipAddress)
|
||||
}
|
||||
|
||||
}]
|
||||
|
|
@ -144,15 +147,18 @@ DialogPlus {
|
|||
|
||||
anchors.fill: parent
|
||||
|
||||
function cancel(sipAddress){
|
||||
model.removeFromConference(sipAddress)
|
||||
}
|
||||
actions: [{
|
||||
icon: 'cancel',
|
||||
visible:true,
|
||||
secure:0,
|
||||
handler: function (entry) {
|
||||
handlerSipAddress(entry.sipAddress)
|
||||
cancel(entry.sipAddress)
|
||||
},
|
||||
handlerSipAddress: function(sipAddress){
|
||||
model.removeFromConference(sipAddress)
|
||||
cancel(sipAddress)
|
||||
}
|
||||
}]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue