From d4b3048e8e0d220b8240d64c4f6af196a309cb83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= Date: Mon, 29 May 2023 13:34:32 -0400 Subject: [PATCH] usernametextedit: create account page should use default nameserver Change-Id: I11a25c6121171eb4fb99b492cc18c32b085b4aaa GitLab: #1159 --- src/app/commoncomponents/UsernameTextEdit.qml | 3 ++- src/app/wizardview/components/CreateAccountPage.qml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/commoncomponents/UsernameTextEdit.qml b/src/app/commoncomponents/UsernameTextEdit.qml index 94ddea28..9e34aeac 100644 --- a/src/app/commoncomponents/UsernameTextEdit.qml +++ b/src/app/commoncomponents/UsernameTextEdit.qml @@ -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; } diff --git a/src/app/wizardview/components/CreateAccountPage.qml b/src/app/wizardview/components/CreateAccountPage.qml index 6e14875d..7334eff0 100644 --- a/src/app/wizardview/components/CreateAccountPage.qml +++ b/src/app/wizardview/components/CreateAccountPage.qml @@ -133,6 +133,7 @@ Rectangle { UsernameTextEdit { id: usernameEdit + accountId: "" icon: PushButton { id: infoBox