Skip to content

Commit 24eafa4

Browse files
committed
Merge remote-tracking branch 'upstream/master' into postgres-query-builder
2 parents 107c0d8 + 9e1a1ed commit 24eafa4

File tree

12 files changed

+340
-306
lines changed

12 files changed

+340
-306
lines changed

docs/sources/http_api/annotations.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,14 @@ Content-Type: application/json
180180

181181
## Delete Annotation By Id
182182

183-
`DELETE /api/annotation/:id`
183+
`DELETE /api/annotations/:id`
184184

185185
Deletes the annotation that matches the specified id.
186186

187187
**Example Request**:
188188

189189
```http
190-
DELETE /api/annotation/1 HTTP/1.1
190+
DELETE /api/annotations/1 HTTP/1.1
191191
Accept: application/json
192192
Content-Type: application/json
193193
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
@@ -204,14 +204,14 @@ Content-Type: application/json
204204

205205
## Delete Annotation By RegionId
206206

207-
`DELETE /api/annotation/region/:id`
207+
`DELETE /api/annotations/region/:id`
208208

209209
Deletes the annotation that matches the specified region id. A region is an annotation that covers a timerange and has a start and end time. In the Grafana database, this is a stored as two annotations connected by a region id.
210210

211211
**Example Request**:
212212

213213
```http
214-
DELETE /api/annotation/region/1 HTTP/1.1
214+
DELETE /api/annotations/region/1 HTTP/1.1
215215
Accept: application/json
216216
Content-Type: application/json
217217
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk

docs/sources/installation/debian.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ sudo dpkg -i grafana_5.0.4_amd64.deb
3434
Add the following line to your `/etc/apt/sources.list` file.
3535

3636
```bash
37-
deb https://packagecloud.io/grafana/stable/debian/ jessie main
37+
deb https://packagecloud.io/grafana/stable/debian/ stretch main
3838
```
3939

4040
Use the above line even if you are on Ubuntu or another Debian version.
4141
There is also a testing repository if you want beta or release
4242
candidates.
4343

4444
```bash
45-
deb https://packagecloud.io/grafana/testing/debian/ jessie main
45+
deb https://packagecloud.io/grafana/testing/debian/ stretch main
4646
```
4747

4848
Then add the [Package Cloud](https://packagecloud.io/grafana) key. This

public/app/core/directives/dash_class.js

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import _ from 'lodash';
2+
import coreModule from '../core_module';
3+
4+
/** @ngInject */
5+
export function dashClass() {
6+
return {
7+
link: function($scope, elem) {
8+
$scope.onAppEvent('panel-fullscreen-enter', function() {
9+
elem.toggleClass('panel-in-fullscreen', true);
10+
});
11+
12+
$scope.onAppEvent('panel-fullscreen-exit', function() {
13+
elem.toggleClass('panel-in-fullscreen', false);
14+
});
15+
16+
$scope.$watch('ctrl.dashboardViewState.state.editview', function(newValue) {
17+
if (newValue) {
18+
elem.toggleClass('dashboard-page--settings-opening', _.isString(newValue));
19+
setTimeout(function() {
20+
elem.toggleClass('dashboard-page--settings-open', _.isString(newValue));
21+
}, 10);
22+
} else {
23+
elem.removeClass('dashboard-page--settings-opening');
24+
elem.removeClass('dashboard-page--settings-open');
25+
}
26+
});
27+
},
28+
};
29+
}
30+
31+
coreModule.directive('dashClass', dashClass);

public/app/core/directives/metric_segment.js

Lines changed: 0 additions & 246 deletions
This file was deleted.

0 commit comments

Comments
 (0)