mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: better domain_user page performance
This commit is contained in:
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.'));
|
||||
|
||||
Reference in new issue
Block a user