2024-05-12 09:22:14 -07:00
|
|
|
package users
|
|
|
|
|
2024-07-11 08:08:58 -07:00
|
|
|
import (
|
|
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/components/bulma"
|
|
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/internal/models"
|
|
|
|
)
|
2024-07-07 08:00:43 -07:00
|
|
|
|
2024-05-12 09:22:14 -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 {
|
2024-07-11 08:08:58 -07:00
|
|
|
@bulma.Notification(vm.Message, bulma.ColorSuccess)
|
2024-05-12 09:22:14 -07:00
|
|
|
} else {
|
2024-07-11 08:08:58 -07:00
|
|
|
@bulma.Notification(vm.Message, bulma.ColorError)
|
2024-07-07 08:00:43 -07:00
|
|
|
}
|
2024-05-12 09:22:14 -07:00
|
|
|
}
|