Reload member device list after trust/blacklisting
This commit is contained in:
parent
963b022f3d
commit
ea0a7517e4
|
@ -17,6 +17,8 @@ HFlickableColumnPage {
|
||||||
property string ed25519Key
|
property string ed25519Key
|
||||||
property HStackView stackView
|
property HStackView stackView
|
||||||
|
|
||||||
|
signal trustSet(bool trust)
|
||||||
|
|
||||||
|
|
||||||
footer: ButtonLayout {
|
footer: ButtonLayout {
|
||||||
ApplyButton {
|
ApplyButton {
|
||||||
|
@ -31,6 +33,7 @@ HFlickableColumnPage {
|
||||||
[deviceOwner, deviceId],
|
[deviceOwner, deviceId],
|
||||||
() => {
|
() => {
|
||||||
loading = false
|
loading = false
|
||||||
|
page.trustSet(true)
|
||||||
stackView.pop()
|
stackView.pop()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -49,6 +52,7 @@ HFlickableColumnPage {
|
||||||
[deviceOwner, deviceId],
|
[deviceOwner, deviceId],
|
||||||
() => {
|
() => {
|
||||||
loading = false
|
loading = false
|
||||||
|
page.trustSet(false)
|
||||||
stackView.pop()
|
stackView.pop()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
@ -15,7 +15,7 @@ HTile {
|
||||||
property string deviceOwnerDisplayName
|
property string deviceOwnerDisplayName
|
||||||
property HStackView stackView
|
property HStackView stackView
|
||||||
|
|
||||||
signal trustChanged()
|
signal trustSet(bool trust)
|
||||||
|
|
||||||
|
|
||||||
backgroundColor: "transparent"
|
backgroundColor: "transparent"
|
||||||
|
@ -49,7 +49,8 @@ HTile {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onClicked: stackView.push(
|
onClicked: {
|
||||||
|
const item = stackView.push(
|
||||||
"DeviceVerification.qml",
|
"DeviceVerification.qml",
|
||||||
{
|
{
|
||||||
userId: deviceTile.userId,
|
userId: deviceTile.userId,
|
||||||
|
@ -61,4 +62,6 @@ HTile {
|
||||||
stackView: deviceTile.stackView
|
stackView: deviceTile.stackView
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
item.trustSet.connect(deviceTile.trustSet)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,8 @@ HListView {
|
||||||
deviceOwner: member.id
|
deviceOwner: member.id
|
||||||
deviceOwnerDisplayName: member.display_name
|
deviceOwnerDisplayName: member.display_name
|
||||||
stackView: profile.stackView
|
stackView: profile.stackView
|
||||||
|
|
||||||
|
onTrustSet: trust => profile.loadDevices()
|
||||||
}
|
}
|
||||||
|
|
||||||
section.property: "type"
|
section.property: "type"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user