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 { ...@@ -51,6 +51,7 @@ ModalTextEdit {
property bool isActive: false property bool isActive: false
property string infohash: CurrentAccount.uri property string infohash: CurrentAccount.uri
property string accountId: CurrentAccount.id
property string registeredName: CurrentAccount.registeredName property string registeredName: CurrentAccount.registeredName
staticText: root.isActive ? registeredName : (registeredName ? registeredName : infohash) staticText: root.isActive ? registeredName : (registeredName ? registeredName : infohash)
...@@ -118,7 +119,7 @@ ModalTextEdit { ...@@ -118,7 +119,7 @@ ModalTextEdit {
onTriggered: { onTriggered: {
if (dynamicText.length !== 0) { if (dynamicText.length !== 0) {
nameRegistrationState = UsernameTextEdit.NameRegistrationState.SEARCHING; nameRegistrationState = UsernameTextEdit.NameRegistrationState.SEARCHING;
NameDirectory.lookupName(CurrentAccount.id, dynamicText); NameDirectory.lookupName(root.accountId, dynamicText);
} else { } else {
nameRegistrationState = UsernameTextEdit.NameRegistrationState.BLANK; nameRegistrationState = UsernameTextEdit.NameRegistrationState.BLANK;
} }
......
...@@ -133,6 +133,7 @@ Rectangle { ...@@ -133,6 +133,7 @@ Rectangle {
UsernameTextEdit { UsernameTextEdit {
id: usernameEdit id: usernameEdit
accountId: ""
icon: PushButton { icon: PushButton {
id: infoBox id: infoBox
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment