From 84609a4a3bbd160b5dc7278d348d92047a64fcd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 1 Feb 2016 17:18:39 +0100 Subject: [PATCH] fix(panel links): changed icon back --- .../features/dashboard/dashnav/dashnav.html | 18 +++++++++++------- public/app/features/panel/panel_menu.js | 7 ++++--- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/public/app/features/dashboard/dashnav/dashnav.html b/public/app/features/dashboard/dashnav/dashnav.html index 1e416b4f90d..89f9f301729 100644 --- a/public/app/features/dashboard/dashnav/dashnav.html +++ b/public/app/features/dashboard/dashnav/dashnav.html @@ -27,13 +27,17 @@
  • + + Link to Dashboard + +
  • +
  • + + Snapshot sharing + +
  • +
  • diff --git a/public/app/features/panel/panel_menu.js b/public/app/features/panel/panel_menu.js index c0cf8e77f02..b23da0f2a88 100644 --- a/public/app/features/panel/panel_menu.js +++ b/public/app/features/panel/panel_menu.js @@ -12,7 +12,7 @@ function (angular, $, _) { var linkTemplate = '' + '{{ctrl.panel.title | interpolateTemplateVars:this}}' + - '' + + '' + ' {{ctrl.timeInfo}}' + ''; @@ -28,6 +28,7 @@ function (angular, $, _) { } return template; } + function createMenuTemplate(ctrl) { var template = '
    '; @@ -124,8 +125,8 @@ function (angular, $, _) { } var menuTemplate; - if ($(e.target).hasClass('fa-link')) { - menuTemplate = createExternalLinkMenu($scope); + if ($(e.target).hasClass('fa-external-link')) { + menuTemplate = createExternalLinkMenu(ctrl); } else { menuTemplate = createMenuTemplate(ctrl); }