Hide action buttons while ending a call.

This commit is contained in:
Julien Wadel 2022-08-23 14:40:02 +02:00
parent ed965d3ecb
commit 5d39c913a7

View file

@ -22,6 +22,7 @@ Rectangle {
property CallModel callModel // Store the call for processing calling.
property bool previewLoaderEnabled: callModel ? callModel.videoEnabled : true
property var _sipAddressObserver: callModel ? SipAddressesModel.getSipAddressObserver(callModel.fullPeerAddress, callModel.fullLocalAddress) : undefined
property bool isEnding: callModel && callModel.status == CallModel.CallStatusEnded
signal cancel()
@ -60,7 +61,7 @@ Rectangle {
Text{
Layout.alignment: Qt.AlignCenter
text: mainItem.callModel
? mainItem.callModel.status == CallModel.CallStatusEnded
? mainItem.isEnding
? "Ending call"
: mainItem.callModel.isOutgoing
? "Outgoing call"
@ -209,7 +210,7 @@ Rectangle {
Layout.alignment: Qt.AlignCenter
Layout.topMargin: 20
Layout.bottomMargin: 15
visible: mainItem.conferenceInfoModel
visible: mainItem.conferenceInfoModel && !mainItem.isEnding
spacing: 30
TextButtonA {
@ -243,6 +244,7 @@ Rectangle {
Layout.preferredHeight: actionsButtons.height
Layout.bottomMargin: 30
Layout.topMargin: 20
visible: !mainItem.isEnding
// Action buttons
RowLayout{
id: actionsButtons