[usersq] Reflect editable in the QML

- if presets prevent a field from being editable, don't allow
  the user to edit the field
- while here, mention the changes in usersq
This commit is contained in:
Adriaan de Groot 2021-03-15 12:51:42 +01:00
parent 44ac33845d
commit 416c2c9689
2 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,8 @@ This release contains contributions from (alphabetically by first name):
coded setup (which Calamares has had for a long time with @home coded setup (which Calamares has had for a long time with @home
and similar) and introduce a custom btrfs configuration through the and similar) and introduce a custom btrfs configuration through the
`mount.conf` file. `mount.conf` file.
- The *usersq* module now connects to the internal configuration
object and may be usable for regular installations.
# 3.2.38.1 (2021-03-15) # # 3.2.38.1 (2021-03-15) #

View File

@ -56,6 +56,7 @@ Kirigami.ScrollablePage {
id: _userNameField id: _userNameField
width: parent.width width: parent.width
enabled: config.isEditable("fullName")
placeholderText: qsTr("Your Full Name") placeholderText: qsTr("Your Full Name")
text: config.fullName text: config.fullName
onTextChanged: config.setFullName(text); onTextChanged: config.setFullName(text);
@ -85,6 +86,7 @@ Kirigami.ScrollablePage {
id: _userLoginField id: _userLoginField
width: parent.width width: parent.width
enabled: config.isEditable("loginName")
placeholderText: qsTr("Login Name") placeholderText: qsTr("Login Name")
text: config.loginName text: config.loginName
onTextChanged: config.setLoginName(text) onTextChanged: config.setLoginName(text)