Fix q key behavior in client details view

This commit is contained in:
Calmcacil
2026-01-12 23:01:59 +01:00
parent 707464e61e
commit 78a100112c
6 changed files with 355 additions and 38 deletions

View File

@@ -6,6 +6,7 @@ import (
"github.com/calmcacil/wg-admin/internal/backup"
"github.com/calmcacil/wg-admin/internal/tui/components"
"github.com/charmbracelet/bubbles/spinner"
"github.com/charmbracelet/bubbles/table"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
@@ -22,6 +23,7 @@ type RestoreScreen struct {
restoreError error
restoreSuccess bool
message string
spinner spinner.Model
}
// Styles
@@ -41,6 +43,9 @@ var (
restoreInfoStyle = lipgloss.NewStyle().
Foreground(lipgloss.Color("241")).
MarginTop(1)
loadingStyle = lipgloss.NewStyle().
Foreground(lipgloss.Color("62")).
Bold(true)
)
// NewRestoreScreen creates a new restore screen