2024-07-11 08:08:58 -07:00
|
|
|
package sources
|
|
|
|
|
2024-07-15 15:35:08 -07:00
|
|
|
import "git.jamestombleson.com/jtom38/newsbot-portal/templ-bulma"
|
2024-07-11 08:08:58 -07:00
|
|
|
|
|
|
|
templ AddAfter(message string, isError bool) {
|
|
|
|
if isError {
|
|
|
|
@bulma.Notification(message, bulma.ColorError)
|
|
|
|
} else {
|
|
|
|
@bulma.Notification("The requested source was added to the server", bulma.ColorSuccess)
|
|
|
|
}
|
|
|
|
}
|