mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Updated global search component to new format
This commit is contained in:
@ -1,11 +1,13 @@
|
||||
import {htmlToDom} from "../services/dom";
|
||||
import {debounce} from "../services/util";
|
||||
import {KeyboardNavigationHandler} from "../services/keyboard-navigation";
|
||||
import {Component} from "./component";
|
||||
|
||||
/**
|
||||
* @extends {Component}
|
||||
* Global (header) search box handling.
|
||||
* Mainly to show live results preview.
|
||||
*/
|
||||
class GlobalSearch {
|
||||
export class GlobalSearch extends Component {
|
||||
|
||||
setup() {
|
||||
this.container = this.$el;
|
||||
@ -77,6 +79,4 @@ class GlobalSearch {
|
||||
this.suggestions.classList.remove('search-suggestions-animation');
|
||||
this.suggestionResultsWrap.innerHTML = '';
|
||||
}
|
||||
}
|
||||
|
||||
export default GlobalSearch;
|
||||
}
|
Reference in New Issue
Block a user