ui: better domain_user page performance

This commit is contained in:
undefined committed 2024-12-11 18:20:28 +08:00
1 parent f52186750d
commit 00392f1272
7 files changed
+35 -15

No files matched your search

@@ -73,7 +73,7 @@ const page = new NamedPage('domain_user', () => {
function ensureAndGetSelectedUsers() {
const users = _.map(
$('.domain-users tbody [type="checkbox"]:checked'),
(ch) => $(ch).closest('tr').attr('data-uid'),
(ch) => $(ch).attr('data-uid') || $(ch).closest('tr').attr('data-uid'),
);
if (users.length === 0) {
Notification.error(i18n('Please select at least one user to perform this operation.'));