parent
1bca5ee174
commit
5f95a1fb4f
|
@ -243,8 +243,7 @@ Popup {
|
||||||
StatusButton {
|
StatusButton {
|
||||||
id: removeBtn
|
id: removeBtn
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
//% "Remove"
|
text: qsTr("Enable")
|
||||||
text: qsTrId("Enable")
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
appSettings.isTenorWarningAccepted = true
|
appSettings.isTenorWarningAccepted = true
|
||||||
chatsModel.gif.getTrendings()
|
chatsModel.gif.getTrendings()
|
||||||
|
@ -261,6 +260,7 @@ Popup {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
id: emptyText
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: {
|
text: {
|
||||||
if(currentCategory === StatusGifPopup.Category.Favorite) {
|
if(currentCategory === StatusGifPopup.Category.Favorite) {
|
||||||
|
@ -269,11 +269,29 @@ Popup {
|
||||||
return qsTr("Recent GIFs will appear here")
|
return qsTr("Recent GIFs will appear here")
|
||||||
}
|
}
|
||||||
|
|
||||||
return ""
|
return qsTr("Error while contacting Tenor API, please retry.")
|
||||||
}
|
}
|
||||||
font.pixelSize: 15
|
font.pixelSize: 15
|
||||||
color: Style.current.secondaryText
|
color: Style.current.secondaryText
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StatusButton {
|
||||||
|
id: retryBtn
|
||||||
|
anchors.top: emptyText.bottom
|
||||||
|
anchors.topMargin: Style.current.padding
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
||||||
|
text: qsTr("Retry")
|
||||||
|
visible: currentCategory === StatusGifPopup.Category.Trending || currentCategory === StatusGifPopup.Category.Search
|
||||||
|
onClicked: {
|
||||||
|
if (searchBox.text === "") {
|
||||||
|
chatsModel.gif.getTrendings()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
searchGif(searchBox.text)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 23db2d1216d5dde12976974f535eac3d55a066c4
|
Subproject commit 9e4c12f408e12c3d4d404933c8073d978d1d8eb4
|
Loading…
Reference in New Issue