diff --git a/.env.example b/.env.example index 8cebf5ae..842091a4 100644 --- a/.env.example +++ b/.env.example @@ -3,5 +3,5 @@ # APP_NAME=littr -APP_VERSION=0.40.6 +APP_VERSION=0.40.7 GOLANG_VERSION=1.23 diff --git a/api/swagger.json b/api/swagger.json index c1d9afba..9a063a52 100644 --- a/api/swagger.json +++ b/api/swagger.json @@ -13,7 +13,7 @@ "name": "MIT", "url": "https://github.com/krustowski/littr/blob/master/LICENSE" }, - "version": "0.40.6" + "version": "0.40.7" }, "host": "www.littr.eu", "basePath": "/api/v1", diff --git a/pkg/backend/router.go b/pkg/backend/router.go index cfd5f862..c97f8f3d 100644 --- a/pkg/backend/router.go +++ b/pkg/backend/router.go @@ -1,5 +1,5 @@ // @title littr -// @version 0.40.6 +// @version 0.40.7 // @description a simple nanoblogging platform as PWA built on go-app framework // @termsOfService https://littr.eu/tos diff --git a/pkg/frontend/navbars.go b/pkg/frontend/navbars.go index 61a9a724..666973ce 100644 --- a/pkg/frontend/navbars.go +++ b/pkg/frontend/navbars.go @@ -67,6 +67,13 @@ func (h *header) handleDismiss(ctx app.Context, a app.Action) { snack.Get("classList").Call("remove", "active") } + // change title back to the clean one + title := app.Window().Get("document") + if !title.IsNull() && strings.Contains(title.Get("title").String(), "(*)") { + prevTitle := title.Get("title").String() + title.Set("title", prevTitle[4:]) + } + ctx.Dispatch(func(ctx app.Context) { h.modalInfoShow = false h.modalLogoutShow = false