Skip to content

Commit 06a8fff

Browse files
committed
Merge remote-tracking branch 'origin/master' into improve-analytics-features
2 parents 4c12a19 + f102a85 commit 06a8fff

File tree

13 files changed

+414
-135
lines changed

13 files changed

+414
-135
lines changed

src/components/PermissionsCollaboratorDialog/PermissionsCollaboratorDialog.example.js

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class DialogDemo extends React.Component {
5050
description='Configure how this user can access the App features.'
5151
advanced={false}
5252
confirmText='Save'
53-
customPermissions={{
53+
customFeaturesPermissions={{
5454
"pushAndroidSettings" : "None",
5555
"pushIOSSettings" : "None",
5656
"oauth" : "None",
@@ -61,9 +61,10 @@ class DialogDemo extends React.Component {
6161
"jobs" : "None",
6262
"webHostLiveQuery" : "None",
6363
"verificationEmails" : "None",
64-
"twitterOauth" : "None"
64+
"twitterOauth" : "None",
65+
"classes" : "None"
6566
}}
66-
defaultPermissions={{
67+
defaultFeaturesPermissions={{
6768
"pushAndroidSettings" : "Write",
6869
"pushIOSSettings" : "Read",
6970
"oauth" : "None",
@@ -74,7 +75,8 @@ class DialogDemo extends React.Component {
7475
"jobs" : "Read",
7576
"webHostLiveQuery" : "None",
7677
"verificationEmails" : "Write",
77-
"twitterOauth" : "Read"
78+
"twitterOauth" : "Read",
79+
"classes" : "Write"
7880
}}
7981
features={{
8082
label: [
@@ -88,7 +90,8 @@ class DialogDemo extends React.Component {
8890
'Facebook Login',
8991
'Twitter Login',
9092
'Android Push notification',
91-
'iOS Push notification'
93+
'iOS Push notification',
94+
'Data Browser'
9295
],
9396
description: [
9497
'Edit your keys, delete, transfer, clone and restart your app',
@@ -101,7 +104,8 @@ class DialogDemo extends React.Component {
101104
'Make your app social using Facebook',
102105
'Make your app social using Twitter',
103106
'Get your message across with Android push',
104-
'Get your message across with iOS push'
107+
'Get your message across with iOS push',
108+
'Create, edit, read and delete data from your classes'
105109
],
106110
collaboratorsCanWrite: [
107111
false,
@@ -113,9 +117,17 @@ class DialogDemo extends React.Component {
113117
true,
114118
true,
115119
true,
120+
true,
121+
true,
116122
true
117123
]
118124
}}
125+
classesPermissions={{
126+
'User': 'Read',
127+
'Book': 'Read',
128+
'Score': 'None',
129+
'Misc': 'Read'
130+
}}
119131
validateEntry={validateSimple}
120132
onCancel={() => {
121133
this.setState({

0 commit comments

Comments
 (0)