Skip to content
Snippets Groups Projects
Commit d4b3048e authored by Sébastien Blin's avatar Sébastien Blin
Browse files

usernametextedit: create account page should use default nameserver

Change-Id: I11a25c6121171eb4fb99b492cc18c32b085b4aaa
GitLab: #1159
parent 087135cc
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,7 @@ ModalTextEdit {
property bool isActive: false
property string infohash: CurrentAccount.uri
property string accountId: CurrentAccount.id
property string registeredName: CurrentAccount.registeredName
staticText: root.isActive ? registeredName : (registeredName ? registeredName : infohash)
......@@ -118,7 +119,7 @@ ModalTextEdit {
onTriggered: {
if (dynamicText.length !== 0) {
nameRegistrationState = UsernameTextEdit.NameRegistrationState.SEARCHING;
NameDirectory.lookupName(CurrentAccount.id, dynamicText);
NameDirectory.lookupName(root.accountId, dynamicText);
} else {
nameRegistrationState = UsernameTextEdit.NameRegistrationState.BLANK;
}
......
......@@ -133,6 +133,7 @@ Rectangle {
UsernameTextEdit {
id: usernameEdit
accountId: ""
icon: PushButton {
id: infoBox
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment