Fix q key behavior in client details view
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user