Ensure that local votes are displayed right away

So even before an update is received, ensure that the data is updated

CURA-6013
This commit is contained in:
Jaime van Kessel 2018-12-10 09:54:26 +01:00
parent e92bd01fb2
commit 04f3601c27
2 changed files with 38 additions and 9 deletions

View file

@ -6,6 +6,8 @@ import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4
import UM 1.1 as UM
import Cura 1.1 as Cura
Item
{
id: page
@ -103,6 +105,12 @@ Item
font: UM.Theme.getFont("default")
color: UM.Theme.getColor("text_medium")
}
Label
{
text: catalog.i18nc("@label", "Rating") + ":"
font: UM.Theme.getFont("default")
color: UM.Theme.getColor("text_medium")
}
}
Column
{
@ -160,6 +168,16 @@ Item
font: UM.Theme.getFont("default")
color: UM.Theme.getColor("text")
}
RatingWidget
{
id: rating
visible: details.type == "plugin"
packageId: details.id
rating: details.average_rating
numRatings: details.num_ratings
userRating: details.user_rating
enabled: toolbox.isInstalled(details.id) && Cura.API.account.isLoggedIn
}
}
Rectangle
{