Commit 7ab3bfe4 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Fix submitting usefulness

QML was getting the names mixed up somehow
parent 45170af1
Pipeline #207161 canceled with stage
in 2 minutes and 1 second
......@@ -11,7 +11,7 @@ import org.kde.discover 2.0
import org.kde.kirigami 2.14 as Kirigami
Kirigami.AbstractCard {
id: item
id: reviewDelegateItem
visible: model.shouldShow
property bool compact: false
property bool separator: true
......@@ -85,10 +85,10 @@ Kirigami.AbstractCard {
}
footer: Loader {
active: !item.compact
active: !reviewDelegateItem.compact
sourceComponent: RowLayout {
id: rateTheReviewLayout
visible: !item.compact
visible: !reviewDelegateItem.compact
Label {
Layout.leftMargin: Kirigami.Units.largeSpacing
visible: usefulnessTotal !== 0
......@@ -117,7 +117,7 @@ Kirigami.AbstractCard {
checked: usefulChoice === ReviewsModel.Yes
onClicked: {
noButton.checked = false
item.markUseful(true)
reviewDelegateItem.markUseful(true)
}
}
Button {
......@@ -134,7 +134,7 @@ Kirigami.AbstractCard {
checked: usefulChoice === ReviewsModel.No
onClicked: {
yesButton.checked = false
item.markUseful(false)
reviewDelegateItem.markUseful(false)
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment