popup modif réunion
This commit is contained in:
parent
c5c95d5a6f
commit
bebea4e7c8
1 changed files with 21 additions and 1 deletions
|
|
@ -343,7 +343,7 @@ AbstractMainPage {
|
||||||
id: editFocusScope
|
id: editFocusScope
|
||||||
property bool isCreation
|
property bool isCreation
|
||||||
property ConferenceInfoGui conferenceInfoGui
|
property ConferenceInfoGui conferenceInfoGui
|
||||||
width: parent.width
|
width: parent?.width
|
||||||
height: editLayout.implicitHeight
|
height: editLayout.implicitHeight
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: editLayout
|
id: editLayout
|
||||||
|
|
@ -420,6 +420,26 @@ AbstractMainPage {
|
||||||
property bool isCreation
|
property bool isCreation
|
||||||
isCreation: editFocusScope.isCreation
|
isCreation: editFocusScope.isCreation
|
||||||
conferenceInfoGui: editFocusScope.conferenceInfoGui
|
conferenceInfoGui: editFocusScope.conferenceInfoGui
|
||||||
|
Connections {
|
||||||
|
target: conferenceEdit.conferenceInfoGui ? conferenceEdit.conferenceInfoGui.core : null
|
||||||
|
function onConferenceSchedulerStateChanged() {
|
||||||
|
var mainWin = UtilsCpp.getMainWindow()
|
||||||
|
if (conferenceEdit.conferenceInfoGui.core.schedulerState == LinphoneEnums.ConferenceSchedulerState.AllocationPending
|
||||||
|
|| conferenceEdit.conferenceInfoGui.core.schedulerState == LinphoneEnums.ConferenceSchedulerState.Updating) {
|
||||||
|
mainWin.showLoadingPopup(qsTr("Modification de la réunion en cours..."))
|
||||||
|
} else {
|
||||||
|
if (conferenceEdit.conferenceInfoGui.core.schedulerState == LinphoneEnums.ConferenceSchedulerState.Error) {
|
||||||
|
UtilsCpp.showInformationPopup(qsTr("Erreur"), qsTr("La modification de la conférence a échoué"), false)
|
||||||
|
}
|
||||||
|
mainWin.closeLoadingPopup()
|
||||||
|
}
|
||||||
|
editFocusScope.enabled = conferenceEdit.conferenceInfoGui.core.schedulerState != LinphoneEnums.ConferenceSchedulerState.AllocationPending
|
||||||
|
}
|
||||||
|
function onSaveFailed() {
|
||||||
|
var mainWin = UtilsCpp.getMainWindow()
|
||||||
|
mainWin.closeLoadingPopup()
|
||||||
|
}
|
||||||
|
}
|
||||||
onSaveSucceed: {
|
onSaveSucceed: {
|
||||||
overridenRightPanelStackView.pop()
|
overridenRightPanelStackView.pop()
|
||||||
UtilsCpp.showInformationPopup(qsTr("Enregistré"), qsTr("Réunion modifiée avec succès"), true)
|
UtilsCpp.showInformationPopup(qsTr("Enregistré"), qsTr("Réunion modifiée avec succès"), true)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue