mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-30 22:21:16 -04:00
Hide ‘nothing selected’ if nothing to select
It’s doesn’t make sense to show the state if the state can’t change. This is especially true when you’re in a brand new, empty service.
This commit is contained in:
@@ -111,6 +111,12 @@
|
||||
|
||||
$('.template-list-selected-counter-count').html(numSelected);
|
||||
|
||||
$('.template-list-selected-counter').toggle(this.hasCheckboxes());
|
||||
|
||||
};
|
||||
|
||||
this.hasCheckboxes = function() {
|
||||
return !!this.$form.find('input:checkbox').length;
|
||||
};
|
||||
|
||||
this.countSelectedCheckboxes = function() {
|
||||
|
||||
Reference in New Issue
Block a user