From cb37df882edc51ed47f4b353ce42eabd80416b19 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 19 Nov 2020 11:17:40 -0500 Subject: Add notices on action completion --- renderer.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'renderer.go') diff --git a/renderer.go b/renderer.go index 1123b0b..d8ea325 100644 --- a/renderer.go +++ b/renderer.go @@ -28,6 +28,8 @@ type GlobalRenderData struct { HavePlugin func(name string) bool + Notice string + // additional plugin-specific data Extra map[string]interface{} } @@ -95,6 +97,7 @@ func NewBaseRenderData(ectx echo.Context) *BaseRenderData { if isactx && ctx.Session != nil { global.LoggedIn = true global.Username = ctx.Session.username + global.Notice = ctx.Session.PopNotice() } return &BaseRenderData{ -- cgit v1.2.3-59-g8ed1b