1
0
Fork 0
mirror of https://github.com/Luzifer/mondash.git synced 2024-12-22 20:11:18 +00:00

Always update DetailURL: Allows deletion

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-08-17 00:03:14 +02:00
parent c0cb0c4fb5
commit db925f8466
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -259,18 +259,15 @@ func (dm dashboardMetric) DataHistory() []string {
}
func (dm *dashboardMetric) Update(m *dashboardMetric) {
dm.Title = m.Title
dm.Description = m.Description
dm.Status = m.Status
dm.Value = m.Value
dm.IgnoreMAD = m.IgnoreMAD
dm.DetailURL = m.DetailURL
dm.HideMAD = m.HideMAD
dm.HideValue = m.HideValue
dm.IgnoreMAD = m.IgnoreMAD
dm.StalenessStatus = m.StalenessStatus
if m.DetailURL != "" {
dm.DetailURL = m.DetailURL
}
dm.Status = m.Status
dm.Title = m.Title
dm.Value = m.Value
if m.Expires != 0 {
dm.Expires = m.Expires