mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 16:39:29 -05:00
Added a dialog to create GXS Identities
Now the basic functionaliteis to chat are in place ATM only pseudonymous identities are supported Everything is still very buggy
This commit is contained in:
parent
c3aca0cf26
commit
1fa20e16c2
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
import QtQuick.Controls 1.4
|
import QtQuick.Controls 1.4
|
||||||
|
import QtQuick.Dialogs 1.2
|
||||||
import org.retroshare.qml_components.LibresapiLocalClient 1.0
|
import org.retroshare.qml_components.LibresapiLocalClient 1.0
|
||||||
|
|
||||||
Item
|
Item
|
||||||
@ -39,11 +40,7 @@ Item
|
|||||||
contactsView.own_gxs_id = json.data[0].gxs_id
|
contactsView.own_gxs_id = json.data[0].gxs_id
|
||||||
contactsView.own_nick = json.data[0].name
|
contactsView.own_nick = json.data[0].name
|
||||||
}
|
}
|
||||||
else
|
else createIdentityDialog.visible = true
|
||||||
{
|
|
||||||
selectedOwnIdentityView.color = "red"
|
|
||||||
selectedOwnIdentityView.text = "You need to create a GXS identity to chat!"
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -71,6 +68,7 @@ Item
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
|
console.log("Contacts view onclicked:", model.name, model.gxs_id)
|
||||||
if(model.own) contactsView.own_gxs_id = model.gxs_id
|
if(model.own) contactsView.own_gxs_id = model.gxs_id
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -105,4 +103,28 @@ Item
|
|||||||
onTriggered: if(contactsView.visible) contactsView.refreshData()
|
onTriggered: if(contactsView.visible) contactsView.refreshData()
|
||||||
Component.onCompleted: start()
|
Component.onCompleted: start()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Dialog
|
||||||
|
{
|
||||||
|
id: createIdentityDialog
|
||||||
|
visible: false
|
||||||
|
title: "You need to create a GXS identity to chat!"
|
||||||
|
standardButtons: StandardButton.Save
|
||||||
|
|
||||||
|
onAccepted: rsApi.request("/identity/create_identity", JSON.stringify({"name":identityNameTE.text, "pgp_linked": !psdnmCheckBox.checked }))
|
||||||
|
|
||||||
|
TextField
|
||||||
|
{
|
||||||
|
id: identityNameTE
|
||||||
|
width: 300
|
||||||
|
}
|
||||||
|
|
||||||
|
Row
|
||||||
|
{
|
||||||
|
anchors.top: identityNameTE.bottom
|
||||||
|
Text { text: "Pseudonymous: " }
|
||||||
|
CheckBox { id: psdnmCheckBox; checked: true; enabled: false }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user