mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-12-04 14:46:37 -05:00
Renamed windows/dialogs
This commit is contained in:
parent
f608100050
commit
666f3b596d
4
ui/ui.go
4
ui/ui.go
@ -10,7 +10,7 @@ import (
|
||||
"github.com/mrusme/gobbs/ui/header"
|
||||
"github.com/mrusme/gobbs/ui/views/posts"
|
||||
"github.com/mrusme/gobbs/ui/windowmanager"
|
||||
"github.com/mrusme/gobbs/ui/windows/postdialog"
|
||||
"github.com/mrusme/gobbs/ui/windows/postshow"
|
||||
|
||||
"github.com/mrusme/gobbs/ui/views"
|
||||
|
||||
@ -108,7 +108,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
m.ctx.Logger.Debugln("received WinOpen")
|
||||
ccmds = m.wm.Open(
|
||||
msg.Target,
|
||||
postdialog.NewModel(m.ctx),
|
||||
postshow.NewModel(m.ctx),
|
||||
[4]int{3, 2, 10, 6},
|
||||
&msg,
|
||||
)
|
||||
|
@ -15,7 +15,7 @@ import (
|
||||
"github.com/mrusme/gobbs/models/reply"
|
||||
"github.com/mrusme/gobbs/ui/cmd"
|
||||
"github.com/mrusme/gobbs/ui/ctx"
|
||||
"github.com/mrusme/gobbs/ui/windows/postdialog"
|
||||
"github.com/mrusme/gobbs/ui/windows/postshow"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -148,7 +148,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
if ok {
|
||||
// m.ctx.Loading = true
|
||||
// cmds = append(cmds, m.loadItem(&i))
|
||||
cmd := cmd.New(cmd.WinOpen, postdialog.WIN_ID, cmd.Arg{
|
||||
cmd := cmd.New(cmd.WinOpen, postshow.WIN_ID, cmd.Arg{
|
||||
Name: "post",
|
||||
Value: &i,
|
||||
})
|
||||
|
@ -1,4 +1,4 @@
|
||||
package postcreatedialog
|
||||
package postcreate
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@ -19,6 +19,10 @@ import (
|
||||
"github.com/mrusme/gobbs/ui/helpers"
|
||||
)
|
||||
|
||||
var (
|
||||
WIN_ID = "postcreate"
|
||||
)
|
||||
|
||||
type KeyMap struct {
|
||||
Refresh key.Binding
|
||||
Select key.Binding
|
@ -1,4 +1,4 @@
|
||||
package postdialog
|
||||
package postshow
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@ -19,7 +19,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
WIN_ID = "postShow"
|
||||
WIN_ID = "postshow"
|
||||
|
||||
viewportStyle = lipgloss.NewStyle().
|
||||
Margin(0, 0, 0, 0).
|
Loading…
Reference in New Issue
Block a user