Commit e8a41baa authored by Jakob Moser's avatar Jakob Moser
Browse files

Replace useless comments, and todo

parent 1d81624b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
// Artist.js

import Song from "./Song.js"

const Artist = {
+1 −1
Original line number Diff line number Diff line
// frontend/PaginationControls.js

const PaginationControls = {
    view: function (vnode) {
        const { currentPage, totalPages, onPageChange } = vnode.attrs
+3 −0
Original line number Diff line number Diff line
export default {
    view: function () {
        // TODO The search bar behaves laggily with this, because every time an
        // input is made, the route is updated, updating the fields value again.
        // This is probably just a design flaw, and should be fixed
        const query = m.route.param("q") || ""
        return m("search", [
            m("input[type=search]", {
+1 −1
Original line number Diff line number Diff line
// Song.js

const Song = {
    view: function (vnode) {
        const { song } = vnode.attrs
+1 −1
Original line number Diff line number Diff line
// frontend/SongList.js

import Artist from "./Artist.js"
import { renderMessage } from "./Message.js"
import ClearSearchLink from "./ClearSearchLink.js"
Loading