mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 12:03:18 +02:00
misc: move GenericErrorsRow in MainApplicationWindow
Change-Id: I09fea85e9fa603481bd2cfe81b15a4d94dcc3ebd Gitlab: #1135
This commit is contained in:
parent
b77012baae
commit
899ff6120c
3 changed files with 14 additions and 8 deletions
|
@ -65,6 +65,15 @@ ApplicationWindow {
|
|||
}
|
||||
}
|
||||
|
||||
header: Loader {
|
||||
active: true
|
||||
sourceComponent: GenericErrorsRow {
|
||||
id: genericError
|
||||
text: CurrentAccount.enabled ? JamiStrings.noNetworkConnectivity : JamiStrings.disabledAccount
|
||||
height: visible? JamiTheme.chatViewHeaderPreferredHeight : 0
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: focusOverlay
|
||||
objectName: "focusOverlay"
|
||||
|
|
|
@ -169,12 +169,6 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
|
||||
GenericErrorsRow {
|
||||
id: genericError
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: JamiTheme.chatViewHeaderPreferredHeight
|
||||
}
|
||||
|
||||
ConversationErrorsRow {
|
||||
id: errorRect
|
||||
Layout.fillWidth: true
|
||||
|
|
|
@ -31,7 +31,11 @@ Rectangle {
|
|||
property alias text: errorLabel.text
|
||||
|
||||
color: JamiTheme.filterBadgeColor
|
||||
visible: CurrentAccount.status === Account.Status.UNREGISTERED
|
||||
visible: CurrentAccount.id !== ""
|
||||
&& CurrentAccount.status !== Account.Status.REGISTERED
|
||||
&& CurrentAccount.status !== Account.Status.READY
|
||||
&& CurrentAccount.status !== Account.Status.TRYING
|
||||
&& CurrentAccount.status !== Account.Status.INITIALIZING
|
||||
|
||||
RowLayout {
|
||||
anchors.fill: parent
|
||||
|
@ -41,7 +45,6 @@ Rectangle {
|
|||
id: errorLabel
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
text: CurrentAccount.enabled ? JamiStrings.noNetworkConnectivity : JamiStrings.disabledAccount
|
||||
color: JamiTheme.filterBadgeTextColor
|
||||
font.pixelSize: JamiTheme.headerFontSize
|
||||
elide: Text.ElideRight
|
||||
|
|
Loading…
Add table
Reference in a new issue