package components import ( "context" "fmt" "github.com/starfleetcptn/gomft/internal/db" ) // Dialog component for confirmation dialogs templ ConfigDialog(id string, title string, message string, confirmClass string, confirmText string, action string, configID uint, configName string) {
{ message }
{ config.Name }
if (config.DestinationType == "gdrive" || config.SourceType == "gdrive" || config.SourceType == "gphotos" || config.DestinationType == "gphotos") && !config.GetGoogleAuthenticated() { Authentication Required } if (config.DestinationType == "gdrive" || config.SourceType == "gdrive" || config.SourceType == "gphotos" || config.DestinationType == "gphotos") && config.GetGoogleAuthenticated() { Authenticated }Source: { config.SourceType }: { config.SourcePath }
Destination: { config.DestinationType }: { config.DestinationPath }
Updated: { config.UpdatedAt.Format("2006-01-02 15:04:05") }
Configurations define how files are transferred between systems
Google Drive and Google Photos configurations require authentication. Click the "Authenticate" button to complete setup.