summaryrefslogtreecommitdiff
path: root/modules/lock/InputField.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lock/InputField.qml')
-rw-r--r--modules/lock/InputField.qml8
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/lock/InputField.qml b/modules/lock/InputField.qml
index 9472d41..9360a1e 100644
--- a/modules/lock/InputField.qml
+++ b/modules/lock/InputField.qml
@@ -40,19 +40,15 @@ Item {
anchors.centerIn: parent
text: {
- if (root.pam.active)
+ if (root.pam.passwd.active)
return qsTr("Loading...");
- if (root.pam.state === "error")
- return qsTr("An error occured");
if (root.pam.state === "max")
return qsTr("You have reached the maximum number of tries");
- if (root.pam.state === "fail")
- return qsTr("Incorrect password");
return qsTr("Enter your password");
}
animate: true
- color: root.pam.active ? Colours.palette.m3secondary : root.pam.state ? Colours.palette.m3error : Colours.palette.m3outline
+ color: root.pam.passwd.active ? Colours.palette.m3secondary : Colours.palette.m3outline
font.pointSize: Appearance.font.size.normal
font.family: Appearance.font.family.mono