]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/entity-search.js
Covered app icon setting with testing
[bookstack] / resources / js / components / entity-search.js
index 8b1861ecf6afec1eb66e9d46843e34561471efc5..b0e42401d51b1520807cfb97d295afaf27ecd826 100644 (file)
@@ -1,10 +1,7 @@
 import {onSelect} from "../services/dom";
+import {Component} from "./component";
 
-/**
- * Class EntitySearch
- * @extends {Component}
- */
-class EntitySearch {
+export class EntitySearch extends Component {
     setup() {
         this.entityId = this.$opts.entityId;
         this.entityType = this.$opts.entityType;
@@ -54,6 +51,4 @@ class EntitySearch {
         this.loadingBlock.classList.add('hidden');
         this.searchInput.value = '';
     }
-}
-
-export default EntitySearch;
\ No newline at end of file
+}
\ No newline at end of file