Skip to content

Commit 59a0877

Browse files
authored
Merge pull request #36 from back4app/revert-35-homolog
Revert "Fix wrong url"
2 parents 819a373 + a53a28d commit 59a0877

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

Parse-Dashboard/app.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ module.exports = function(config, options) {
180180
res.send(`<!DOCTYPE html>
181181
<head>
182182
<link rel="shortcut icon" type="image/x-icon" href="${mountPath}favicon.ico" />
183-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
184183
<base href="${mountPath}"/>
185184
<script>
186185
PARSE_DASHBOARD_PATH = "${mountPath}";
@@ -206,7 +205,6 @@ module.exports = function(config, options) {
206205
res.send(`<!DOCTYPE html>
207206
<head>
208207
<link rel="shortcut icon" type="image/x-icon" href="${mountPath}favicon.ico" />
209-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
210208
<base href="${mountPath}"/>
211209
<script>
212210
PARSE_DASHBOARD_PATH = "${mountPath}";

src/components/back4App/Header/headerNavData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const headerNavData = {
22
items: [
3-
{label: 'My Apps', url: 'https://dashboard.back4app.com/apps/#!/admin'},
3+
{label: 'My Apps', pathname: '/apps'},
44
{label: 'Dashboard', url: 'https://dashboard.back4app.com/'},
55
{label: 'Docs', url: 'http://docs.back4app.com/'},
66
{label: 'Community', url: 'https://groups.google.com/forum/#!forum/back4app'},

src/dashboard/Dashboard.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,17 +196,19 @@ class Dashboard extends React.Component {
196196
}
197197
});
198198
return Parse.Promise.when(appInfoPromises);
199-
}).then(function() {
200-
Array.prototype.slice.call(arguments).forEach(app => {
201-
AppsManager.addApp(app);
202-
});
199+
}).then(function(resolvedApps) {
200+
if(resolvedApps && resolvedApps.length) {
201+
resolvedApps.forEach(app => {
202+
AppsManager.addApp(app);
203+
});
204+
}
203205
this.setState({ configLoadingState: AsyncStatus.SUCCESS });
204206
}.bind(this)).fail(({ error }) => {
205207
this.setState({
206208
configLoadingError: error,
207209
configLoadingState: AsyncStatus.FAILED
208210
});
209-
})
211+
});
210212
}
211213

212214
render() {

src/dashboard/Data/Browser/BrowserTable.react.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ export default class BrowserTable extends React.Component {
292292
{rows}
293293
<div style={{ height: Math.max(0, (this.props.data.length - this.state.offset - MAX_ROWS) * ROW_HEIGHT) }} />
294294
{addRow}
295+
<div className={styles.rowsHolder} style={{ top: Math.max(0, this.state.offset * ROW_HEIGHT) }}>
296+
{rows}
297+
</div>
295298
{editor}
296299
</div>
297300
);

0 commit comments

Comments
 (0)