ready to debug 'gui/cloudflare'

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-05 01:07:34 -06:00
parent 0592636049
commit fc6c72740b
2 changed files with 4 additions and 4 deletions

4
gui.go
View File

@ -25,7 +25,7 @@ func setupControlPanelWindow() {
// setup the main tab
mainWindow("DNS and IPv6 Control Panel")
detailsTab("DNS Details")
detailsTab("OS Details")
debugTab("Debug")
// me.digStatus = NewDigStatusWindow(me.window)
@ -218,7 +218,7 @@ func mainWindow(title string) {
gr.NewButton("GO GUI Debugger", func () {
debugger.DebugWindow(me.myGui)
})
gr.NewButton("DNS Details", func () {
gr.NewButton("OS Details", func () {
me.details.Toggle()
})
gr.NewButton("DNS Debug", func () {

View File

@ -98,7 +98,7 @@ func NewHostnameStatusWindow(p *gui.Node) *hostnameStatus {
hs.dnsValue = grid.NewLabel("3.4.5.6")
hs.dnsAction = grid.NewButton("CHECK", func () {
log.Info("should", hs.dnsAction.S, "here for", hs.dnsValue.S)
log.Warn("should", hs.dnsAction.S, "here for", hs.dnsValue.S)
if (hs.dnsAction.S == "DELETE") {
hs.deleteDNSrecord(hs.dnsValue.S)
}
@ -145,7 +145,7 @@ func (hs *hostnameStatus) createDNSrecord(value string) bool {
log.Info("createDNSrecord() DNS API Provider =", hs.API())
if (hs.API() == "cloudflare") {
log.Info("createDNSrecord() Try to delete via cloudflare")
log.Warn("createDNSrecord() Try to delete via cloudflare:", me.hostname, value)
return cloudflare.Create(hs.Domain(), me.hostname, value)
}
return false