mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-02-12 08:26:44 +01:00
Merged development into master
This commit is contained in:
commit
4c0fe00441
1 changed files with 7 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
angular.module('ponyfm').factory('playlists', [
|
angular.module('ponyfm').factory('playlists', [
|
||||||
'$rootScope', '$state', '$http'
|
'$rootScope', '$state', '$http', 'auth'
|
||||||
($rootScope, $state, $http) ->
|
($rootScope, $state, $http, auth) ->
|
||||||
playlistDef = null
|
playlistDef = null
|
||||||
playlists = {}
|
playlists = {}
|
||||||
playlistPages = []
|
playlistPages = []
|
||||||
|
@ -49,6 +49,7 @@ angular.module('ponyfm').factory('playlists', [
|
||||||
def
|
def
|
||||||
|
|
||||||
refresh: () ->
|
refresh: () ->
|
||||||
|
if auth.data.isLogged
|
||||||
$.getJSON('/api/web/playlists/pinned')
|
$.getJSON('/api/web/playlists/pinned')
|
||||||
.done (playlists) -> $rootScope.$apply ->
|
.done (playlists) -> $rootScope.$apply ->
|
||||||
self.pinnedPlaylists.length = 0
|
self.pinnedPlaylists.length = 0
|
||||||
|
|
Loading…
Reference in a new issue