X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a6633642232efd164d4708967ab59e498fbff896..refs/pull/3617/head:/resources/js/components/entity-search.js diff --git a/resources/js/components/entity-search.js b/resources/js/components/entity-search.js index 8b1861ecf..b0e42401d 100644 --- a/resources/js/components/entity-search.js +++ b/resources/js/components/entity-search.js @@ -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