mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-29 04:14:52 +03:00
Load credentials as JSON
This commit is contained in:
parent
0cc036b223
commit
0d99184dcb
@ -64,7 +64,7 @@ class Controller(object):
|
||||
|
||||
|
||||
def refresh_credentials(self):
|
||||
self._dev_info['credentials'] = [(c.name,c.code) for c in self._calculate_all()]
|
||||
self._dev_info['credentials'] = [json.dumps(c.__dict__) for c in self._calculate_all()]
|
||||
|
||||
def set_mode(self, connections):
|
||||
dev = self._descriptor.open_device()
|
||||
|
@ -6,7 +6,6 @@ import QtQuick.Controls.Styles 1.4
|
||||
Column {
|
||||
property var device
|
||||
width: parent.width
|
||||
// anchors.fill: parent.width
|
||||
height: parent.height
|
||||
property int margin: width / 30
|
||||
|
||||
@ -48,10 +47,10 @@ Column {
|
||||
|
||||
Column {
|
||||
Text {
|
||||
text: qsTr('') + modelData[0]
|
||||
text: qsTr('') + JSON.parse(modelData)['name']
|
||||
}
|
||||
Text {
|
||||
text: qsTr('') + modelData[1]
|
||||
text: qsTr('') + JSON.parse(modelData)['code']
|
||||
font.family: "Chalkboard"
|
||||
font.bold: true
|
||||
font.pointSize: 20
|
||||
|
Loading…
Reference in New Issue
Block a user