From 3e433ea8bfae9cc0d370718804f3cf6964b808c6 Mon Sep 17 00:00:00 2001 From: Hunter Long Date: Sun, 25 Nov 2018 18:19:07 +0100 Subject: [PATCH] fixed message notify time - added messages to export json settings --- Makefile | 2 +- core/export.go | 4 +++- source/tmpl/form_message.html | 8 ++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index d56f38e3..eb1b7b7a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=0.79.88 +VERSION=0.79.89 BINARY_NAME=statup GOPATH:=$(GOPATH) GOCMD=go diff --git a/core/export.go b/core/export.go index c888e2b4..e690bcae 100644 --- a/core/export.go +++ b/core/export.go @@ -48,7 +48,7 @@ func ExportChartsJs() string { type ExportData struct { Core *types.Core `json:"core"` Services []types.ServiceInterface `json:"services"` - Messages []*types.Message `json:"messages"` + Messages []*Message `json:"messages"` Checkins []*Checkin `json:"checkins"` Users []*User `json:"users"` Notifiers []types.AllNotifiers `json:"notifiers"` @@ -56,6 +56,7 @@ type ExportData struct { func ExportSettings() ([]byte, error) { users, err := SelectAllUsers() + messages, err := SelectMessages() if err != nil { return nil, err } @@ -65,6 +66,7 @@ func ExportSettings() ([]byte, error) { Checkins: AllCheckins(), Users: users, Services: CoreApp.Services, + Messages: messages, } export, err := json.Marshal(data) return export, err diff --git a/source/tmpl/form_message.html b/source/tmpl/form_message.html index f36bf04a..460c6b92 100644 --- a/source/tmpl/form_message.html +++ b/source/tmpl/form_message.html @@ -60,11 +60,11 @@
- +