1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Image manager: extracted lang text, updated anims and search cancel

- Updated search cancel to only show when a search is active.
- Updated gallery image load animation to be much faster.
This commit is contained in:
Dan Brown
2023-05-28 11:37:49 +01:00
parent 946c9ae804
commit 89d6d862fa
5 changed files with 9 additions and 4 deletions

View File

@ -53,6 +53,7 @@ export class ImageManager extends Component {
this.searchForm.addEventListener('submit', event => {
this.resetListView();
this.loadGallery();
this.cancelSearch.toggleAttribute('hidden', !this.searchInput.value);
event.preventDefault();
});
@ -201,6 +202,7 @@ export class ImageManager extends Component {
resetSearchView() {
this.searchInput.value = '';
this.cancelSearch.toggleAttribute('hidden', true);
}
resetEditForm() {