Commit 1a1995b4 authored by Jakob Moser's avatar Jakob Moser
Browse files

Remove current view from tab bar

parent 3956a2c4
Loading
Loading
Loading
Loading
+1 −2
Changes for frontend/TabBar.mjs: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -2,8 +2,7 @@ import { Tab } from "./components/pieces/Tab.mjs"

// TabBar.mjs
const TabBar = {
    view: function (vnode) {
        const { currentView } = vnode.attrs
    view () {
        const tabs = [
            { id: "all", label: "Alle" },
            { id: "favorites", label: "Favoriten" },
+1 −3
Changes for frontend/app.mjs: 1 added line, 3 removed lines.
Original line number Diff line number Diff line
@@ -21,9 +21,7 @@ export const AppLayout = {
                searchTerm: this.searchTerm,
                onSearchTermChange: this.onSearchTermChange.bind(this),
            }),
            m(TabBar, {
                currentView,
            }),
            m(TabBar),
            // Rendere die Song-Liste-Komponente.
            // Übergib den aktuellen Tab, den Suchbegriff UND den Callback zum Ändern des Suchbegriffs.
            m(SongList, {