| 1 |
import QtQuick 2.9 |
| 2 |
import Lomiri.Components 1.3 |
| 3 |
import Lomiri.Components.ListItems 1.3 as ListItem |
| 4 |
import Lomiri.OnlineAccounts.Plugin 1.0 |
| 5 |
|
| 6 |
MainView { |
| 7 |
id: root |
| 8 |
|
| 9 |
property var signonRequest: request |
| 10 |
|
| 11 |
width: units.gu(60) |
| 12 |
height: units.gu(90) |
| 13 |
|
| 14 |
Page { |
| 15 |
|
| 16 |
header: PageHeader { |
| 17 |
id: pageHeader |
| 18 |
title: signonRequest.title |
| 19 |
} |
| 20 |
|
| 21 |
WebView { |
| 22 |
id: loader |
| 23 |
signonRequest: root.signonRequest |
| 24 |
|
| 25 |
anchors { |
| 26 |
top: pageHeader.bottom |
| 27 |
left: parent.left |
| 28 |
right: parent.right |
| 29 |
bottom: parent.bottom |
| 30 |
bottomMargin: Math.max(osk.height, cancelButton.height) |
| 31 |
} |
| 32 |
} |
| 33 |
|
| 34 |
ListItem.SingleControl { |
| 35 |
id: cancelButton |
| 36 |
anchors.bottom: parent.bottom |
| 37 |
showDivider: false |
| 38 |
control: Button { |
| 39 |
text: i18n.dtr("lomiri-online-accounts", "Cancel") |
| 40 |
width: parent.width - units.gu(4) |
| 41 |
onClicked: signonRequest.cancel() |
| 42 |
} |
| 43 |
} |
| 44 |
|
| 45 |
KeyboardRectangle { |
| 46 |
id: osk |
| 47 |
} |
| 48 |
} |
| 49 |
} |