diff --git a/public/app/core/services/popover_srv.ts b/public/app/core/services/popover_srv.ts index 9cd13dfc280..6f61ee742a3 100644 --- a/public/app/core/services/popover_srv.ts +++ b/public/app/core/services/popover_srv.ts @@ -69,7 +69,7 @@ function popoverSrv($compile, $rootScope, $timeout) { openDrop = drop; openDrop.open(); - }, 10); + }, 100); }; } diff --git a/public/app/features/annotations/annotations_srv.ts b/public/app/features/annotations/annotations_srv.ts index 310f565804c..45536d73b98 100644 --- a/public/app/features/annotations/annotations_srv.ts +++ b/public/app/features/annotations/annotations_srv.ts @@ -38,7 +38,12 @@ export class AnnotationsSrv { // filter out annotations that do not belong to requesting panel annotations = _.filter(annotations, item => { - if (item.panelId && options.panel.id !== item.panelId) { + console.log(item); + // shownIn === 1 requires annotation matching panel id + if (item.source.showIn === 1) { + if (item.panelId && options.panel.id === item.panelId) { + return true; + } return false; } return true; diff --git a/public/app/features/annotations/editor_ctrl.ts b/public/app/features/annotations/editor_ctrl.ts index a0a8fda01d1..deb90691d91 100644 --- a/public/app/features/annotations/editor_ctrl.ts +++ b/public/app/features/annotations/editor_ctrl.ts @@ -18,13 +18,13 @@ export class AnnotationsEditorCtrl { datasource: null, iconColor: 'rgba(255, 96, 96, 1)', enable: true, - show: 0, + showIn: 0, hide: false, }; showOptions: any = [ {text: 'All Panels', value: 0}, - {text: 'Specifc Panels', value: 1}, + {text: 'Specific Panels', value: 1}, ]; /** @ngInject */ @@ -51,7 +51,7 @@ export class AnnotationsEditorCtrl { edit(annotation) { this.currentAnnotation = annotation; - this.currentAnnotation.show = this.currentAnnotation.show || 0; + this.currentAnnotation.showIn = this.currentAnnotation.showIn || 0; this.currentIsNew = false; this.datasourceChanged(); this.mode = 'edit'; diff --git a/public/app/features/annotations/partials/editor.html b/public/app/features/annotations/partials/editor.html index b5c631ec6a8..9e8d5cac2d6 100644 --- a/public/app/features/annotations/partials/editor.html +++ b/public/app/features/annotations/partials/editor.html @@ -80,7 +80,7 @@