Skip to content

Commit

Permalink
Display loading indicator in table when loading members
Browse files Browse the repository at this point in the history
  • Loading branch information
robertknight committed Nov 29, 2024
1 parent 6dc5847 commit 2f584a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ export default function EditGroupMembersForm({
rows={members ?? []}
columns={columns}
renderItem={renderRow}
loading={!members}
/>
</Scroll>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,11 @@ describe('EditGroupMembersForm', () => {
headers: config.api.readGroupMembers.headers,
}),
);
assert.isTrue(wrapper.find('DataTable').prop('loading'));

await waitForTable(wrapper);

assert.isFalse(wrapper.find('DataTable').prop('loading'));
const users = getRenderedUsers(wrapper);
assert.deepEqual(users, ['bob', 'johnsmith', 'jane']);
});
Expand Down

0 comments on commit 2f584a3

Please sign in to comment.