[#2549] Muted contacts and chats modal was missing indicative text
Muted contacts and Muted chats modals were blank when nothing added to list, added indicative text label Closes #2549
This commit is contained in:
parent
03db6a4985
commit
03b0d272f9
|
@ -11,6 +11,7 @@ ModalPopup {
|
||||||
//% "Muted chats"
|
//% "Muted chats"
|
||||||
title: qsTrId("muted-chats")
|
title: qsTrId("muted-chats")
|
||||||
property bool showMutedContacts: false
|
property bool showMutedContacts: false
|
||||||
|
property string noContentText: ""
|
||||||
|
|
||||||
onClosed: {
|
onClosed: {
|
||||||
root.destroy()
|
root.destroy()
|
||||||
|
@ -88,4 +89,10 @@ ModalPopup {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StyledText {
|
||||||
|
anchors.centerIn: parent
|
||||||
|
visible: (mutedChatsList.count === 0)
|
||||||
|
text: root.noContentText
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,7 +116,7 @@ ScrollView {
|
||||||
|
|
||||||
StatusSettingsLineButton {
|
StatusSettingsLineButton {
|
||||||
//% "Play a sound when receiving a notification"
|
//% "Play a sound when receiving a notification"
|
||||||
text: qsTrId("play-a-sound-when-receiving-a-notification")
|
text: qsTr("play-a-sound-when-receiving-a-notification")
|
||||||
isSwitch: true
|
isSwitch: true
|
||||||
switchChecked: appSettings.notificationSoundsEnabled
|
switchChecked: appSettings.notificationSoundsEnabled
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
@ -126,7 +126,7 @@ ScrollView {
|
||||||
|
|
||||||
StatusSettingsLineButton {
|
StatusSettingsLineButton {
|
||||||
//% "Use your operating system's notifications"
|
//% "Use your operating system's notifications"
|
||||||
text: qsTrId("use-your-operating-system-s-notifications")
|
text: qsTr("use-your-operating-system-s-notifications")
|
||||||
isSwitch: true
|
isSwitch: true
|
||||||
switchChecked: appSettings.useOSNotifications
|
switchChecked: appSettings.useOSNotifications
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
@ -273,8 +273,9 @@ ScrollView {
|
||||||
showMutedContacts: true
|
showMutedContacts: true
|
||||||
})
|
})
|
||||||
//% "Muted contacts"
|
//% "Muted contacts"
|
||||||
mutedChatsModal.title = qsTrId("muted-contacts")
|
mutedChatsModal.title = qsTrId("muted-contacts");
|
||||||
mutedChatsModal.open()
|
mutedChatsModal.noContentText = qsTr("Muted contacts will appear here");
|
||||||
|
mutedChatsModal.open();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -289,8 +290,9 @@ ScrollView {
|
||||||
showMutedContacts: false
|
showMutedContacts: false
|
||||||
})
|
})
|
||||||
//% "Muted chats"
|
//% "Muted chats"
|
||||||
mutedChatsModal.title = qsTrId("muted-chats")
|
mutedChatsModal.title = qsTrId("muted-chats");
|
||||||
mutedChatsModal.open()
|
mutedChatsModal.noContentText = qsTr("Muted chats will appear here");
|
||||||
|
mutedChatsModal.open();
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
|
Loading…
Reference in New Issue