X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/cb10ad804f046d652950dbafb3d549875b4f898f..refs/pull/4021/head:/resources/js/components/chapter-contents.js diff --git a/resources/js/components/chapter-contents.js b/resources/js/components/chapter-contents.js index c824d0f78..37df213e3 100644 --- a/resources/js/components/chapter-contents.js +++ b/resources/js/components/chapter-contents.js @@ -1,9 +1,7 @@ import {slideUp, slideDown} from "../services/animations"; +import {Component} from "./component"; -/** - * @extends {Component} - */ -class ChapterContents { +export class ChapterContents extends Component { setup() { this.list = this.$refs.list; @@ -31,7 +29,4 @@ class ChapterContents { event.preventDefault(); this.isOpen ? this.close() : this.open(); } - } - -export default ChapterContents;