Skip to content

Commit 4c6af59

Browse files
committed
Refactor
1 parent 40696f6 commit 4c6af59

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/dashboard/Settings/Collaborators.react.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,20 @@ export default class Collaborators extends React.Component {
3333
constructor() {
3434
super();
3535

36+
const defaultPermissions = {
37+
"coreSettings" : "Read",
38+
"manageParseServer" : "Read",
39+
"logs" : "Read",
40+
"cloudCode" : "Write",
41+
"jobs" : "Write",
42+
"webHostLiveQuery" : "Write",
43+
"verificationEmails" : "Write",
44+
"oauth" : "Write",
45+
"twitterOauth" : "Write",
46+
"pushAndroidSettings" : "Write",
47+
"pushIOSSettings" : "Write",
48+
}
49+
3650
this.state = {
3751
lastError: '',
3852
currentEmail: '',
@@ -44,20 +58,6 @@ export default class Collaborators extends React.Component {
4458
};
4559
}
4660

47-
defaultPermissions = {
48-
"coreSettings" : "Read",
49-
"manageParseServer" : "Read",
50-
"logs" : "Read",
51-
"cloudCode" : "Write",
52-
"jobs" : "Write",
53-
"webHostLiveQuery" : "Write",
54-
"verificationEmails" : "Write",
55-
"oauth" : "Write",
56-
"twitterOauth" : "Write",
57-
"pushAndroidSettings" : "Write",
58-
"pushIOSSettings" : "Write",
59-
}
60-
6161
handleAdd(newEmail) {
6262
console.log(1, newEmail);
6363
//TODO: Show some in-progress thing while the collaborator is being validated, or maybe have some sort of

0 commit comments

Comments
 (0)