Remove email label from the account widget.

It's not needed and it's not currently public data that is published
with the user token.

Contributes to CURA-5784.
This commit is contained in:
Diego Prado Gesto 2018-10-18 14:28:00 +02:00
parent 11693aad36
commit a4c609d514
2 changed files with 5 additions and 25 deletions

View file

@ -1,4 +1,6 @@
# Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from typing import Optional

View file

@ -27,36 +27,14 @@ Column
Label
{
id: message
id: information
anchors.horizontalCenter: parent.horizontalCenter
visible: !loggedIn
text: catalog.i18nc("@label", "Please login or create an account to enjoy all features of Ultimaker Cura")
text: loggedIn ? profile["username"] : catalog.i18nc("@label", "Please login or create an account to enjoy all features of Ultimaker Cura")
font: loggedIn ? UM.Theme.getFont("large") : UM.Theme.getFont("default")
color: UM.Theme.getColor("text")
}
Column
{
id: userInformation
anchors.horizontalCenter: parent.horizontalCenter
visible: loggedIn
Label
{
anchors.horizontalCenter: parent.horizontalCenter
text: loggedIn ? profile["username"] : ""
font: UM.Theme.getFont("large")
color: UM.Theme.getColor("text")
}
Label
{
anchors.horizontalCenter: parent.horizontalCenter
text: "email.address@hardcoded.is"
font: UM.Theme.getFont("default")
color: UM.Theme.getColor("text")
}
}
Loader
{
id: accountEntryPoints