mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 22:06:25 +00:00
252061d8e8
Fixes #15750 When the pairing fails, the UI now let's the user use the seed phrase instead. When they do, a call is send to the original device and both instances will show an AC notif. When the original device accepts the pairing, the call is made to pair and sync the devices and the AC notifs get deleted
79 lines
2.0 KiB
QML
79 lines
2.0 KiB
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import Qt.labs.settings 1.0
|
|
|
|
import mainui.activitycenter.views 1.0
|
|
import mainui.activitycenter.stores 1.0
|
|
|
|
import Storybook 1.0
|
|
|
|
SplitView {
|
|
id: root
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
Logs { id: logs }
|
|
|
|
QtObject {
|
|
id: notificationMock
|
|
|
|
property string id: "1"
|
|
property string communityId: "1"
|
|
property string sectionId: "1"
|
|
property int notificationType: 1
|
|
property int timestamp: Date.now()
|
|
property int previousTimestamp: 0
|
|
property bool read: false
|
|
property bool dismissed: false
|
|
property bool accepted: false
|
|
}
|
|
|
|
Item {
|
|
SplitView.fillHeight: true
|
|
SplitView.fillWidth: true
|
|
|
|
ActivityNotificationNewDevice {
|
|
id: notification
|
|
|
|
anchors.centerIn: parent
|
|
width: parent.width - 50
|
|
height: implicitHeight
|
|
|
|
type: ActivityNotificationNewDevice.InstallationType.Received
|
|
accountName: "bob.eth"
|
|
store: undefined
|
|
notification: notificationMock
|
|
|
|
onMoreDetailsClicked: logs.logEvent("ActivityNotificationNewDevice::onMoreDetailsClicked")
|
|
}
|
|
|
|
}
|
|
|
|
LogsAndControlsPanel {
|
|
SplitView.minimumHeight: 100
|
|
SplitView.preferredHeight: 160
|
|
|
|
logsView.logText: logs.logText
|
|
|
|
Column {
|
|
Row {
|
|
RadioButton {
|
|
text: "Received"
|
|
checked: true
|
|
onCheckedChanged: if(checked) notification.type = ActivityNotificationNewDevice.InstallationType.Received
|
|
}
|
|
|
|
RadioButton {
|
|
text: "Created"
|
|
onCheckedChanged: if(checked) notification.type = ActivityNotificationNewDevice.InstallationType.Created
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// category: Activity Center
|
|
// https://www.figma.com/design/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=40765-355811&m=dev
|