Skip to content

Commit 6b70120

Browse files
authored
Merge pull request #25 from paivaric/app_keys
Uncomment app's keys
2 parents a80a87b + f28b346 commit 6b70120

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ npm-debug.log
1010
*.swp
1111
.env
1212

13-
.idea/
13+
.idea/
14+
15+
npm-debug.log.*
16+
/parse-dashboard-config.json

src/dashboard/DashboardView.react.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,13 @@ export default class DashboardView extends React.Component {
168168
link: '/settings/general'
169169
});
170170
}
171-
/*
172-
if (features.keysSettings) {
171+
// if (features.keysSettings) {
173172
settingsSections.push({
174173
name: 'Security & Keys',
175174
link: '/settings/keys'
176175
});
177-
}
178-
176+
// }
177+
/*
179178
if (features.usersSettings) {
180179
settingsSections.push({
181180
name: 'Users',

src/dashboard/Settings/SecuritySettings.react.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ export default class SecuritySettings extends DashboardView {
106106
label={<Label text='Master key' description='Using this key overrides all permissions. Not usable on client SDKs. Keep it secret!' />}
107107
input={<KeyField name='Master' hidden={true}>{currentApp.masterKey}</KeyField>} />
108108
</Fieldset>
109-
<Fieldset legend='Reset Master Key' description='Use this when your key has been compromised.'>
110-
<Field
111-
label={<Label text='Reset master key' description={<span>This will permanently reset the master <br/>key to a newly generated key.</span>} />}
112-
input={<FormButton color='red' value='Reset Master Key' onClick={() => this.setState({ showResetDialog: true })} />} />
113-
</Fieldset>
109+
{/*<Fieldset legend='Reset Master Key' description='Use this when your key has been compromised.'>*/}
110+
{/*<Field*/}
111+
{/*label={<Label text='Reset master key' description={<span>This will permanently reset the master <br/>key to a newly generated key.</span>} />}*/}
112+
{/*input={<FormButton color='red' value='Reset Master Key' onClick={() => this.setState({ showResetDialog: true })} />} />*/}
113+
{/*</Fieldset>*/}
114114
{permissions}
115-
{resetDialog}
115+
{/*{resetDialog}*/}
116116
<Toolbar section='Settings' subsection='Security & Keys' />
117117
</div>
118118
);

0 commit comments

Comments
 (0)