Commit a147015e by Torkel Ödegaard

fix(playlists): fixed url in playlist view when using sub url, fixes #3711

parent 44f02421
......@@ -22,10 +22,10 @@
{{playlist.title}}
</td>
<td >
<a href="{{ playlistUrl(playlist) }}">{{ playlistUrl(playlist) }}</a>
<a href="playlists/play/{{playlist.id}}">playlists/play/{{playlist.id}}</a>
</td>
<td class="text-center">
<a href="{{ playlistUrl(playlist) }}" class="btn btn-inverse btn-mini">
<a href="playlists/play/{{playlist.id}}" class="btn btn-inverse btn-mini">
<i class="fa fa-play"></i>
Play
</a>
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment