Merge lp:~seb128/ubuntu-system-settings/security-ui-tweaks into lp:ubuntu-system-settings

Proposed by Sebastien Bacher
Status: Merged
Approved by: Ken VanDine
Approved revision: 1512
Merged at revision: 1520
Proposed branch: lp:~seb128/ubuntu-system-settings/security-ui-tweaks
Merge into: lp:ubuntu-system-settings
Diff against target: 104 lines (+38/-8)
2 files modified
plugins/security-privacy/AppAccess.qml (+35/-5)
plugins/security-privacy/PageComponent.qml (+3/-3)
To merge this branch: bzr merge lp:~seb128/ubuntu-system-settings/security-ui-tweaks
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Ken VanDine Approve
Review via email: mp+268625@code.launchpad.net

Commit message

[security-privacy] small bugfixes and ui tweaks
- update some strings to match the design
- translate the list items names
- include online accounts button

Description of the change

[security-privacy] small bugfixes and ui tweaks
- update some strings to match the design
- translate the list items names
- include online accounts button

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
1508. By Sebastien Bacher

rename "mic" to "microphone"

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ken VanDine (ken-vandine) wrote :

This looks great, but while your changing these strings please also change "Other app access" to "App permissions" per the spec.

review: Needs Fixing
1509. By Sebastien Bacher

rename page 'app permissions' to match the spec

1510. By Sebastien Bacher

include location permissions in the list

1511. By Sebastien Bacher

show chevrons on items with are enabled

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
1512. By Sebastien Bacher

some extra tweaks

Revision history for this message
Ken VanDine (ken-vandine) wrote :

Looks good and works great

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/security-privacy/AppAccess.qml'
2--- plugins/security-privacy/AppAccess.qml 2015-07-13 12:09:52 +0000
3+++ plugins/security-privacy/AppAccess.qml 2015-08-24 15:29:59 +0000
4@@ -25,7 +25,7 @@
5
6 ItemPage {
7 id: root
8- title: i18n.tr("Other app access")
9+ title: i18n.tr("App permissions")
10
11 Flickable {
12 anchors.fill: parent
13@@ -43,7 +43,7 @@
14 anchors.right: parent.right
15
16 ListItem.Caption {
17- text: i18n.tr("Apps that you have granted and have requested access to:")
18+ text: i18n.tr("Apps that you have granted access to:")
19 }
20
21 ListModel {
22@@ -54,8 +54,13 @@
23 trustStoreService: "CameraService"
24 }
25 ListElement {
26- name: QT_TR_NOOP("Mic")
27- caption: QT_TR_NOOP("Apps that have requested access to your mic")
28+ name: QT_TR_NOOP("Location")
29+ caption: QT_TR_NOOP("Apps that have requested access to your location")
30+ trustStoreService: "UbuntuLocationService"
31+ }
32+ ListElement {
33+ name: QT_TR_NOOP("Microphone")
34+ caption: QT_TR_NOOP("Apps that have requested access to your microphone")
35 trustStoreService: "PulseAudio"
36 }
37 }
38@@ -64,8 +69,9 @@
39 model: appsModel
40
41 ListItem.SingleValue {
42- text: model.name
43+ text: i18n.tr(model.name)
44 enabled: trustStoreModel.count > 0
45+ progression: enabled ? true : false
46 value: trustStoreModel.count > 0 ?
47 i18n.tr("%1/%2").arg(trustStoreModel.grantedCount).arg(trustStoreModel.count) :
48 i18n.tr("0")
49@@ -81,6 +87,30 @@
50 }
51 }
52 }
53+
54+ ListItem.Caption {
55+ text: i18n.tr("Apps may also request access to online accounts.")
56+ }
57+
58+ ListItem.SingleControl {
59+ control: Button {
60+ text: i18n.tr("Online Accounts…")
61+ width: parent.width - units.gu(4)
62+ onClicked: {
63+ var upPlugin = pluginManager.getByName("online-accounts")
64+ if (upPlugin) {
65+ var updatePage = upPlugin.pageComponent
66+ if (updatePage)
67+ pageStack.push(updatePage)
68+ else
69+ console.warn("online-accounts")
70+ } else {
71+ console.warn("online-accounts")
72+ }
73+ }
74+ }
75+ showDivider: false
76+ }
77 }
78 }
79 }
80
81=== modified file 'plugins/security-privacy/PageComponent.qml'
82--- plugins/security-privacy/PageComponent.qml 2015-05-21 13:32:41 +0000
83+++ plugins/security-privacy/PageComponent.qml 2015-08-24 15:29:59 +0000
84@@ -207,7 +207,7 @@
85 ListItem.SingleValue {
86 id: locationItem
87 objectName: "locationItem"
88- text: i18n.tr("Location access")
89+ text: i18n.tr("Location")
90 value: ""
91 progression: true
92 onClicked: pageStack.push(Qt.resolvedUrl("Location.qml"))
93@@ -225,9 +225,9 @@
94 value: locationActionGroup.enabled.state
95 }
96 ListItem.SingleValue {
97- text: i18n.tr("Other app access")
98+ text: i18n.tr("App permissions")
99 progression: true
100- onClicked: pageStack.push(Qt.resolvedUrl("AppAccess.qml"))
101+ onClicked: pageStack.push(Qt.resolvedUrl("AppAccess.qml"), {pluginManager: pluginManager})
102 }
103 ListItem.SingleValue {
104 text: i18n.tr("Diagnostics")

Subscribers

People subscribed via source and target branches