From 4b4f398e83b416ddae884b70879e6a69b6d5c25e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 7 May 2015 19:14:13 +0200 Subject: [PATCH] more work on dashboard links, this feature is taking forever, dam angular, and dam complexity --- public/app/features/dashlinks/editor.html | 10 ++++ public/app/features/dashlinks/module.html | 6 -- public/app/features/dashlinks/module.js | 68 +++++++++++++++++------ public/app/features/panellinks/linkSrv.js | 58 +++++++++++++++++++ public/css/less/overrides.less | 22 +++----- public/css/less/submenu.less | 2 +- 6 files changed, 129 insertions(+), 37 deletions(-) delete mode 100644 public/app/features/dashlinks/module.html diff --git a/public/app/features/dashlinks/editor.html b/public/app/features/dashlinks/editor.html index 9339590823e..a5f442a8e65 100644 --- a/public/app/features/dashlinks/editor.html +++ b/public/app/features/dashlinks/editor.html @@ -27,6 +27,16 @@
  • +
  • + +
  • +
  • + Title +
  • +
  • + +
  • +
  • Url
  • diff --git a/public/app/features/dashlinks/module.html b/public/app/features/dashlinks/module.html deleted file mode 100644 index 32c001ccd38..00000000000 --- a/public/app/features/dashlinks/module.html +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/public/app/features/dashlinks/module.js b/public/app/features/dashlinks/module.js index ff27d288f46..40a4a8ad6e6 100644 --- a/public/app/features/dashlinks/module.js +++ b/public/app/features/dashlinks/module.js @@ -42,21 +42,33 @@ function (angular, _) { }; }); - module.directive('dashLink', function(templateSrv) { + module.directive('dashLink', function($compile, linkSrv) { return { - scope: { - link: "=" - }, restrict: 'E', - templateUrl: 'app/features/dashlinks/module.html', link: function(scope, elem) { + var link = scope.link; + var template = '