newsbot-portal/internal/views/users/afterLogin.templ

17 lines
487 B
Plaintext
Raw Permalink Normal View History

package users
import (
"git.jamestombleson.com/jtom38/newsbot-portal/templ-bulma"
"git.jamestombleson.com/jtom38/newsbot-portal/internal/models"
)
2024-07-07 08:00:43 -07:00
// This is returned after the user logs into the application.
// It just returns a partial view because it will overlap with the existing template.
2024-07-07 08:00:43 -07:00
templ AfterLogin(vm models.AfterLoginViewModel) {
if vm.Success {
@bulma.Notification(vm.Message, bulma.ColorSuccess)
} else {
@bulma.Notification(vm.Message, bulma.ColorError)
2024-07-07 08:00:43 -07:00
}
}