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

@ -25,7 +25,10 @@ Item
acceptedButtons: Qt.NoButton
onExited:
{
ratingWidget.indexHovered = -1
if(ratingWidget.canRate)
{
ratingWidget.indexHovered = -1
}
}
Row
@ -87,7 +90,13 @@ Item
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.
}
}
}
}
}