From dc3b614749658a4926326cb33286c310cbd7fc9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 21 Sep 2016 13:45:26 +0200 Subject: [PATCH] fix(submenu): fixed issue with submenu and annotation display, and annotation issue in table panel --- .../features/annotations/annotations_srv.ts | 2 +- .../features/dashboard/submenu/submenu.html | 43 ++++++++----------- .../app/features/dashboard/submenu/submenu.ts | 3 +- public/app/plugins/panel/table/module.ts | 3 +- 4 files changed, 22 insertions(+), 29 deletions(-) diff --git a/public/app/features/annotations/annotations_srv.ts b/public/app/features/annotations/annotations_srv.ts index c40a704c2a5..060c6af50a5 100644 --- a/public/app/features/annotations/annotations_srv.ts +++ b/public/app/features/annotations/annotations_srv.ts @@ -29,7 +29,7 @@ export class AnnotationsSrv { this.getGlobalAnnotations(options), this.getPanelAnnotations(options) ]).then(allResults => { - return _.flatten(allResults); + return _.flattenDeep(allResults); }).catch(err => { this.$rootScope.appEvent('alert-error', ['Annotations failed', (err.message || err)]); }); diff --git a/public/app/features/dashboard/submenu/submenu.html b/public/app/features/dashboard/submenu/submenu.html index 1e1513d4021..d7e14bd662b 100644 --- a/public/app/features/dashboard/submenu/submenu.html +++ b/public/app/features/dashboard/submenu/submenu.html @@ -1,30 +1,23 @@