Skip to content

Commit b94a31e

Browse files
johnnydimasflovilmart
authored andcommitted
Added add row button to data browser toolbar. (#512)
* Added add row button to data browser toolbar. * Added strict mode to authentication module.
1 parent b109183 commit b94a31e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Parse-Dashboard/Authentication.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use strict";
12
function Authentication(validUsers, useEncryptedPasswords) {
23
this.validUsers = validUsers;
34
this.useEncryptedPasswords = useEncryptedPasswords || false;
@@ -21,13 +22,13 @@ Authentication.prototype.authenticate = function (userToTest) {
2122
appsUserHasAccessTo = user.apps || null;
2223
}
2324

24-
return isAuthenticated
25+
return isAuthenticated;
2526
}) ? true : false;
2627

2728
return {
2829
isAuthenticated,
2930
appsUserHasAccessTo
30-
}
31-
}
31+
};
32+
};
3233

3334
module.exports = Authentication;

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ let BrowserToolbar = ({
128128
subsection={subsection}
129129
details={details.join(' \u2022 ')}
130130
>
131+
<a className={styles.toolbarButton} onClick={onAddRow}>
132+
<Icon name='plus-solid' width={14} height={14} />
133+
<span>Add Row</span>
134+
</a>
135+
<div className={styles.toolbarSeparator} />
131136
<a className={styles.toolbarButton} onClick={onRefresh}>
132137
<Icon name='refresh-solid' width={14} height={14} />
133138
<span>Refresh</span>

0 commit comments

Comments
 (0)