Explorar o código

fix(snapshot): Fix for snapshot with expire 7 days option, 7 days option not correct, was 7 hours, fixes #2574

Torkel Ödegaard %!s(int64=10) %!d(string=hai) anos
pai
achega
30cd782e92
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 0
      CHANGELOG.md
  2. 1 1
      public/app/features/dashboard/shareSnapshotCtrl.js

+ 1 - 0
CHANGELOG.md

@@ -10,6 +10,7 @@ it allows you to add queries of differnet data source types & instances to the s
 - [Issue #1186](https://github.com/grafana/grafana/issues/1186). Time Picker: New option `today`, will set time range from midnight to now
 
 **Fixes**
+- [Issue #2574](https://github.com/grafana/grafana/issues/2574). Snapshot: Fix for snapshot with expire 7 days option, 7 days option not correct, was 7 hours
 - [Issue #2568](https://github.com/grafana/grafana/issues/2568). AuthProxy: Fix for server side rendering of panel when using auth proxy
 - [Issue #2490](https://github.com/grafana/grafana/issues/2490). Graphite: Dashboard import was broken in 2.1 and 2.1.1, working now
 - [Issue #2565](https://github.com/grafana/grafana/issues/2565). TimePicker: Fix for when you applied custom time range it did not refreh dashboard

+ 1 - 1
public/app/features/dashboard/shareSnapshotCtrl.js

@@ -19,7 +19,7 @@ function (angular, _) {
     $scope.expireOptions = [
       {text: '1 Hour', value: 60*60},
       {text: '1 Day',  value: 60*60*24},
-      {text: '7 Days', value: 60*60*7},
+      {text: '7 Days', value: 60*60*24*7},
       {text: 'Never',  value: 0},
     ];