Skip to content

Commit

Permalink
Merge pull request #142 from supertokens/fix/add-user-button
Browse files Browse the repository at this point in the history
fix: add user button not visible
  • Loading branch information
rishabhpoddar authored Apr 1, 2024
2 parents 2a9f5fc + 57dedbb commit 5306c76
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 15 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [0.11.1] - 2024-04-01

- Fixes a regression bug in user management dashboard that causes the add user button to not be visible when there is only one tenant.

## [0.11.0] - 2024-03-20

- Removes the tenants list API and uses the login methods API to get tenants and its login methods
Expand Down
2 changes: 1 addition & 1 deletion build/static/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/js/bundle.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dashboard",
"version": "0.11.0",
"version": "0.11.1",
"private": true,
"dependencies": {
"@babel/core": "^7.16.0",
Expand Down
19 changes: 10 additions & 9 deletions src/ui/pages/usersList/UsersList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,6 @@ export const UsersList: React.FC<UserListProps> = ({
})}
</select>
</div>
<Button
disabled={selectedTenant === undefined || tenantsListFromStore === undefined}
id="add-user"
className="ml-auto"
color="secondary"
onClick={() => setShowCreateUserDialog(true)}>
<PlusIcon />
Add User
</Button>
</div>
)}

Expand All @@ -307,6 +298,16 @@ export const UsersList: React.FC<UserListProps> = ({
/>
)}

<Button
disabled={selectedTenant === undefined || tenantsListFromStore === undefined}
id="add-user"
className="ml-auto"
color="secondary"
onClick={() => setShowCreateUserDialog(true)}>
<PlusIcon />
Add User
</Button>

{showCreateUserDialog && selectedTenant !== undefined && tenantsListFromStore !== undefined ? (
<CreateUserDialog
defaultSelectedTenantId={selectedTenant}
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
* under the License.
*/

export const package_version = "0.11.0";
export const package_version = "0.11.1";

0 comments on commit 5306c76

Please sign in to comment.