diff --git a/public/app/features/playlist/partials/playlists.html b/public/app/features/playlist/partials/playlists.html
index e424f1a2d88..fcf888b7aa9 100644
--- a/public/app/features/playlist/partials/playlists.html
+++ b/public/app/features/playlist/partials/playlists.html
@@ -22,10 +22,10 @@
{{playlist.title}}
- {{ playlistUrl(playlist) }}
+ playlists/play/{{playlist.id}}
|
-
+
Play
diff --git a/public/app/features/playlist/playlists_ctrl.js b/public/app/features/playlist/playlists_ctrl.js
index 092bb00f56c..b4bc464825c 100644
--- a/public/app/features/playlist/playlists_ctrl.js
+++ b/public/app/features/playlist/playlists_ctrl.js
@@ -7,20 +7,12 @@ function (angular, _) {
var module = angular.module('grafana.controllers');
- module.controller('PlaylistsCtrl', function(
- $scope,
- $location,
- backendSrv
- ) {
+ module.controller('PlaylistsCtrl', function($scope, $location, backendSrv) {
backendSrv.get('/api/playlists')
.then(function(result) {
$scope.playlists = result;
});
- $scope.playlistUrl = function(playlist) {
- return '/playlists/play/' + playlist.id;
- };
-
$scope.removePlaylist = function(playlist) {
var modalScope = $scope.$new(true);
|