mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-09 19:43:31 +02:00
usernametextedit: create account page should use default nameserver
Change-Id: I11a25c6121171eb4fb99b492cc18c32b085b4aaa GitLab: #1159
This commit is contained in:
parent
087135cccf
commit
d4b3048e8e
2 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||||
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 {
|
||||||
|
|
||||||
UsernameTextEdit {
|
UsernameTextEdit {
|
||||||
id: usernameEdit
|
id: usernameEdit
|
||||||
|
accountId: ""
|
||||||
|
|
||||||
icon: PushButton {
|
icon: PushButton {
|
||||||
id: infoBox
|
id: infoBox
|
||||||
|
|
Loading…
Add table
Reference in a new issue