diff --git a/public/app/features/playlist/playlist_edit_ctrl.ts b/public/app/features/playlist/playlist_edit_ctrl.ts index e684ba91ecf..5ada3f4ab31 100644 --- a/public/app/features/playlist/playlist_edit_ctrl.ts +++ b/public/app/features/playlist/playlist_edit_ctrl.ts @@ -44,7 +44,7 @@ export class PlaylistEditCtrl { }); this.filteredTags = this.tagresult; - }; + } addPlaylistItem(playlistItem) { playlistItem.value = playlistItem.id.toString(); @@ -53,7 +53,7 @@ export class PlaylistEditCtrl { this.playlistItems.push(playlistItem); this.filterFoundPlaylistItems(); - }; + } addTagPlaylistItem(tag) { console.log(tag); @@ -92,31 +92,31 @@ export class PlaylistEditCtrl { }, () => { this.$scope.appEvent('alert-error', ['Unable to save playlist', '']); }); - }; + } isNew() { return !this.playlist.id; - }; + } isPlaylistEmpty() { return !this.playlistItems.length; - }; + } isSearchResultsEmpty() { return !this.dashboardresult.length; - }; + } isSearchQueryEmpty() { return this.searchQuery === ''; - }; + } backToList() { this.$location.path('/playlists'); - }; + } isLoading() { return this.loading; - }; + } searchStarted(promise) { promise.then((data) => { @@ -126,7 +126,7 @@ export class PlaylistEditCtrl { this.tagresult = data.tagResult; this.filterFoundPlaylistItems(); }); - }; + } movePlaylistItem(playlistItem, offset) { var currentPosition = this.playlistItems.indexOf(playlistItem); @@ -136,15 +136,15 @@ export class PlaylistEditCtrl { this.playlistItems.splice(currentPosition, 1); this.playlistItems.splice(newPosition, 0, playlistItem); } - }; + } movePlaylistItemUp(playlistItem) { this.movePlaylistItem(playlistItem, -1); - }; + } movePlaylistItemDown(playlistItem) { this.movePlaylistItem(playlistItem, 1); - }; + } } coreModule.controller('PlaylistEditCtrl', PlaylistEditCtrl); diff --git a/public/app/features/playlist/playlist_search.ts b/public/app/features/playlist/playlist_search.ts index 8996ec5d104..60a43b7358d 100644 --- a/public/app/features/playlist/playlist_search.ts +++ b/public/app/features/playlist/playlist_search.ts @@ -39,11 +39,11 @@ export class PlaylistSearchCtrl { showStarred() { this.query.starred = !this.query.starred; this.searchDashboards(); - }; + } queryHasNoFilters() { return this.query.query === '' && this.query.starred === false && this.query.tag.length === 0; - }; + } filterByTag(tag, evt) { this.query.tag.push(tag); @@ -52,7 +52,7 @@ export class PlaylistSearchCtrl { evt.stopPropagation(); evt.preventDefault(); } - }; + } getTags() { var prom: any = {}; @@ -65,7 +65,7 @@ export class PlaylistSearchCtrl { }); this.searchStarted(prom); - }; + } } export function playlistSearchDirective() { diff --git a/public/app/features/playlist/playlists_ctrl.ts b/public/app/features/playlist/playlists_ctrl.ts index af687a9698a..10d6d86d309 100644 --- a/public/app/features/playlist/playlists_ctrl.ts +++ b/public/app/features/playlist/playlists_ctrl.ts @@ -25,7 +25,7 @@ export class PlaylistsCtrl { this.$scope.appEvent('alert-error', ['Unable to delete playlist', '']); this.playlists.push(playlist); }); - }; + } removePlaylist(playlist) { @@ -38,8 +38,7 @@ export class PlaylistsCtrl { this.removePlaylistConfirmed(playlist); } }); - - }; + } } coreModule.controller('PlaylistsCtrl', PlaylistsCtrl);