you can create channels now!!! :D

This commit is contained in:
2026-01-14 15:51:34 +11:00
parent 7ca336c321
commit 827f39afcc
4 changed files with 90 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ from textual.widgets import Button, ListView
from textual.app import ComposeResult
from ui.widgets.channel import Channel
from ui.screens.channel_create_screen import ChannelCreateScreen
class Sidebar(Vertical):
@@ -22,6 +23,10 @@ class Sidebar(Vertical):
}
"""
def on_button_pressed(self, event: Button.Pressed):
if event.button.id == "add-channel":
self.app.push_screen(ChannelCreateScreen())
def compose(self) -> ComposeResult:
with VerticalScroll(id="channels"):
for i, channel in enumerate(self.app.project.channels):