Skip to content

Commit 5568991

Browse files
committed
fix
1 parent da42fb1 commit 5568991

3 files changed

Lines changed: 8 additions & 96 deletions

File tree

src/dashboard/Dashboard.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import RestConsole from './Data/ApiConsole/RestConsole.react';
4040
import Retention from './Analytics/Retention/Retention.react';
4141
import SchemaOverview from './Data/Browser/SchemaOverview.react';
4242
import SecuritySettings from './Settings/SecuritySettings.react';
43-
import SettingsData from './Settings/SettingsData.react';
4443
import SlowQueries from './Analytics/SlowQueries/SlowQueries.react';
4544
import styles from 'dashboard/Apps/AppsIndex.scss';
4645
import UsersSettings from './Settings/UsersSettings.react';
@@ -234,17 +233,15 @@ export default class Dashboard extends React.Component {
234233

235234
const SettingsRoute = (
236235
<>
237-
<Route element={<SettingsData />}>
238-
<Route path="dashboard" element={<DashboardSettings />} />
239-
<Route path="security" element={<Security />} />
240-
<Route path="general" element={<GeneralSettings />} />
241-
<Route path="keys" element={<SecuritySettings />} />
242-
<Route path="users" element={<UsersSettings />} />
243-
<Route path="push" element={<PushSettings />} />
244-
<Route path="hosting" element={<HostingSettings />} />
245-
<Route index element={<Navigate replace to="dashboard" />} />
246-
</Route>
236+
<Route path="dashboard" element={<DashboardSettings />} />
237+
<Route path="security" element={<Security />} />
247238
<Route path="keyboard-shortcuts" element={<KeyboardShortcutsSettings />} />
239+
<Route path="general" element={<GeneralSettings />} />
240+
<Route path="keys" element={<SecuritySettings />} />
241+
<Route path="users" element={<UsersSettings />} />
242+
<Route path="push" element={<PushSettings />} />
243+
<Route path="hosting" element={<HostingSettings />} />
244+
<Route index element={<Navigate replace to="dashboard" />} />
248245
</>
249246
);
250247

src/dashboard/Settings/SettingsData.react.js

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/lib/ParseApp.js

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -370,35 +370,6 @@ export default class ParseApp {
370370
return AJAX.put(path, data);
371371
}
372372

373-
saveSettingsFields(fields) {
374-
const path = '/apps/' + this.slug;
375-
const appFields = {};
376-
for (const f in fields) {
377-
appFields['parse_app[' + f + ']'] = fields[f];
378-
}
379-
const promise = AJAX.put(path, appFields);
380-
promise.then(({ successes }) => {
381-
for (const f in fields) {
382-
this.settings.fields[f] = successes[f];
383-
}
384-
});
385-
return promise;
386-
}
387-
388-
fetchSettingsFields() {
389-
// Cache it for a minute
390-
if (new Date() - this.settings.lastFetched < 60000) {
391-
return Promise.resolve(this.settings.fields);
392-
}
393-
const path = '/apps/' + this.slug + '/dashboard_ajax/settings';
394-
return AJAX.get(path).then(fields => {
395-
for (const f in fields) {
396-
this.settings.fields[f] = fields[f];
397-
this.settings.lastFetched = new Date();
398-
}
399-
return Promise.resolve(fields);
400-
});
401-
}
402373

403374
cleanUpFiles() {
404375
const path = '/apps/' + this.slug + '/cleanup_files';

0 commit comments

Comments
 (0)