Skip to content

Commit

Permalink
fix: Users List button not visible
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek3255 committed Apr 1, 2024
1 parent 2a9f5fc commit 53ba8a2
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 15 deletions.
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 53ba8a2

Please sign in to comment.