| 1 |
// SPDX-FileCopyrightText: Nheko Contributors |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: GPL-3.0-or-later |
| 4 |
|
| 5 |
import "../ui" |
| 6 |
import QtQuick 2.3 |
| 7 |
import QtQuick.Controls 2.3 |
| 8 |
import QtQuick.Layouts 1.10 |
| 9 |
import im.nheko 1.0 |
| 10 |
|
| 11 |
ColumnLayout { |
| 12 |
property string title: qsTr("Waiting for other party…") |
| 13 |
spacing: 16 |
| 14 |
|
| 15 |
Label { |
| 16 |
id: content |
| 17 |
|
| 18 |
Layout.preferredWidth: 400 |
| 19 |
Layout.fillWidth: true |
| 20 |
wrapMode: Text.Wrap |
| 21 |
text: { |
| 22 |
switch (flow.state) { |
| 23 |
case "WaitingForOtherToAccept": |
| 24 |
return qsTr("Waiting for other side to accept the verification request."); |
| 25 |
case "WaitingForKeys": |
| 26 |
return qsTr("Waiting for other side to continue the verification process."); |
| 27 |
case "WaitingForMac": |
| 28 |
return qsTr("Waiting for other side to complete the verification process."); |
| 29 |
default: |
| 30 |
return ""; |
| 31 |
} |
| 32 |
} |
| 33 |
color: palette.text |
| 34 |
verticalAlignment: Text.AlignVCenter |
| 35 |
} |
| 36 |
|
| 37 |
Item { Layout.fillHeight: true; } |
| 38 |
Spinner { |
| 39 |
Layout.alignment: Qt.AlignHCenter |
| 40 |
foreground: palette.mid |
| 41 |
} |
| 42 |
Item { Layout.fillHeight: true; } |
| 43 |
|
| 44 |
RowLayout { |
| 45 |
Button { |
| 46 |
Layout.alignment: Qt.AlignLeft |
| 47 |
text: qsTr("Cancel") |
| 48 |
onClicked: { |
| 49 |
flow.cancel(); |
| 50 |
dialog.close(); |
| 51 |
} |
| 52 |
} |
| 53 |
|
| 54 |
Item { |
| 55 |
Layout.fillWidth: true |
| 56 |
} |
| 57 |
|
| 58 |
} |
| 59 |
|
| 60 |
} |
| 61 |
|