Commit f43fd058 authored by Nate Graham's avatar Nate Graham 🔩

Unify how the new Samba user is communicated to the user

The text talks about setting a password, but then various other things
talk about creating a user. Technically a user is indeed being created
behind the scenes, but this is something that the user doesn't really
need to know about. So let's just consistently communicate the
password-setting aspect to the user.

Also right-align the button to match other dialogs.
parent 4ae7cfda
......@@ -20,8 +20,8 @@ Kirigami.OverlaySheet {
signal accepted()
header: Kirigami.Heading {
// FIXME make qml user name aware so we can be more contextually accurate and label it 'create user foo'
text: i18nc("@title", "Create User")
// FIXME make qml user name aware so we can be more contextually accurate and label it 'set password for foo'
text: i18nc("@title", "Set password")
}
function openAndClear() {
......@@ -113,9 +113,9 @@ Kirigami.OverlaySheet {
QQC2.Button {
id: passButton
text: i18nc("@action:button creates a new samba user", "Create User")
text: i18nc("@action:button creates a new samba user with the user-specified password", "Set Password")
enabled: isAcceptable()
Layout.alignment: Qt.AlignLeft
Layout.alignment: Qt.AlignRight
onClicked: maybeAccept()
}
}
......
......@@ -67,7 +67,7 @@ Before you can access shares with your current user account you need to set a Sa
}
QQC2.Button {
text: i18nc("@action:button opens dialog to create new user", "Create My Samba User")
text: i18nc("@action:button opens dialog to create new user", "Create Samba password")
onClicked: changePassword.openAndClear()
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment