Prevent rating when user is not logged in

CURA-6013
This commit is contained in:
Jaime van Kessel 2018-12-14 10:46:31 +01:00
parent 3225512851
commit bb1bf14a01

View File

@ -24,9 +24,12 @@ Item
hoverEnabled: ratingWidget.canRate hoverEnabled: ratingWidget.canRate
acceptedButtons: Qt.NoButton acceptedButtons: Qt.NoButton
onExited: onExited:
{
if(ratingWidget.canRate)
{ {
ratingWidget.indexHovered = -1 ratingWidget.indexHovered = -1
} }
}
Row Row
{ {
@ -87,7 +90,13 @@ Item
return "#5a5a5a" return "#5a5a5a"
} }
} }
onClicked: rated(index + 1) // Notify anyone who cares about this. onClicked:
{
if(ratingWidget.canRate)
{
rated(index + 1) // Notify anyone who cares about this.
}
}
} }
} }
} }