added no results found and no live search on /template page

This commit is contained in:
Beverly Nguyen
2025-06-09 17:58:43 -07:00
parent fa158cd762
commit 312cdf08fa
3 changed files with 7 additions and 2 deletions

View File

@@ -293,10 +293,12 @@
if (this.currentState === 'add-new-template') {
this.$form.find('.template-list-item').addClass('js-hidden');
$('.live-search').addClass('js-hidden');
this.$form.find('input[type=checkbox]').prop('checked', false);
this.selectionStatus.update({ total: 0, templates: 0, folders: 0 });
} else {
this.$form.find('.template-list-item').removeClass('js-hidden');
$('.live-search').removeClass('js-hidden');
}
if (currentStateObj && 'setFocus' in currentStateObj) {