Skip to content

Commit a147015

Browse files
committed
fix(playlists): fixed url in playlist view when using sub url, fixes grafana#3711
1 parent 44f0242 commit a147015

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

public/app/features/playlist/partials/playlists.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ <h2>Saved playlists</h2>
2222
{{playlist.title}}
2323
</td>
2424
<td >
25-
<a href="{{ playlistUrl(playlist) }}">{{ playlistUrl(playlist) }}</a>
25+
<a href="playlists/play/{{playlist.id}}">playlists/play/{{playlist.id}}</a>
2626
</td>
2727
<td class="text-center">
28-
<a href="{{ playlistUrl(playlist) }}" class="btn btn-inverse btn-mini">
28+
<a href="playlists/play/{{playlist.id}}" class="btn btn-inverse btn-mini">
2929
<i class="fa fa-play"></i>
3030
Play
3131
</a>

public/app/features/playlist/playlists_ctrl.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,12 @@ function (angular, _) {
77

88
var module = angular.module('grafana.controllers');
99

10-
module.controller('PlaylistsCtrl', function(
11-
$scope,
12-
$location,
13-
backendSrv
14-
) {
10+
module.controller('PlaylistsCtrl', function($scope, $location, backendSrv) {
1511
backendSrv.get('/api/playlists')
1612
.then(function(result) {
1713
$scope.playlists = result;
1814
});
1915

20-
$scope.playlistUrl = function(playlist) {
21-
return '/playlists/play/' + playlist.id;
22-
};
23-
2416
$scope.removePlaylist = function(playlist) {
2517
var modalScope = $scope.$new(true);
2618

0 commit comments

Comments
 (0)