2 * Copyright (C) 2015-2016 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 import Ubuntu.Components 1.3
20 import ".." as LocalComponents
22 LocalComponents.Page {
24 objectName: "reportingPage"
26 title: webview.visible ? i18n.tr("Privacy Policy") : i18n.tr("Help Us Improve")
27 forwardButtonSourceComponent: !webview.visible ? forwardButton : null
29 customTitle: webview.visible
31 skip: !diagnostics.reportCrashes // skip the page when the system is configured not to report crashes
34 if (webview.visible) {
35 webview.visible = false;
45 leftMargin: leftMargin
46 rightMargin: rightMargin
47 topMargin: customMargin
50 LocalComponents.CheckableSetting {
57 objectName: "reportCheck"
59 text: i18n.tr("Improve system performance by sending us crashes and error reports.") + "<br><br><a href='#'>" +
60 i18n.tr("Privacy policy") + "</a>"
61 checked: diagnostics.reportCrashes
62 visible: !webview.visible
64 webview.url = "http://www.ubuntu.com/legal/terms-and-policies/privacy-policy";
65 webview.visible = true;
72 anchors.left: parent.left
73 anchors.right: parent.right
74 anchors.leftMargin: -leftMargin
75 anchors.rightMargin: -rightMargin
83 LocalComponents.StackButton {
86 diagnostics.setReportCrashes(reportCheck.checked);