Commit b6f27626 by bergquist

style(playlist): remove semi colons for functions in TS

parent d66932a8
...@@ -44,7 +44,7 @@ export class PlaylistEditCtrl { ...@@ -44,7 +44,7 @@ export class PlaylistEditCtrl {
}); });
this.filteredTags = this.tagresult; this.filteredTags = this.tagresult;
}; }
addPlaylistItem(playlistItem) { addPlaylistItem(playlistItem) {
playlistItem.value = playlistItem.id.toString(); playlistItem.value = playlistItem.id.toString();
...@@ -53,7 +53,7 @@ export class PlaylistEditCtrl { ...@@ -53,7 +53,7 @@ export class PlaylistEditCtrl {
this.playlistItems.push(playlistItem); this.playlistItems.push(playlistItem);
this.filterFoundPlaylistItems(); this.filterFoundPlaylistItems();
}; }
addTagPlaylistItem(tag) { addTagPlaylistItem(tag) {
console.log(tag); console.log(tag);
...@@ -92,31 +92,31 @@ export class PlaylistEditCtrl { ...@@ -92,31 +92,31 @@ export class PlaylistEditCtrl {
}, () => { }, () => {
this.$scope.appEvent('alert-error', ['Unable to save playlist', '']); this.$scope.appEvent('alert-error', ['Unable to save playlist', '']);
}); });
}; }
isNew() { isNew() {
return !this.playlist.id; return !this.playlist.id;
}; }
isPlaylistEmpty() { isPlaylistEmpty() {
return !this.playlistItems.length; return !this.playlistItems.length;
}; }
isSearchResultsEmpty() { isSearchResultsEmpty() {
return !this.dashboardresult.length; return !this.dashboardresult.length;
}; }
isSearchQueryEmpty() { isSearchQueryEmpty() {
return this.searchQuery === ''; return this.searchQuery === '';
}; }
backToList() { backToList() {
this.$location.path('/playlists'); this.$location.path('/playlists');
}; }
isLoading() { isLoading() {
return this.loading; return this.loading;
}; }
searchStarted(promise) { searchStarted(promise) {
promise.then((data) => { promise.then((data) => {
...@@ -126,7 +126,7 @@ export class PlaylistEditCtrl { ...@@ -126,7 +126,7 @@ export class PlaylistEditCtrl {
this.tagresult = data.tagResult; this.tagresult = data.tagResult;
this.filterFoundPlaylistItems(); this.filterFoundPlaylistItems();
}); });
}; }
movePlaylistItem(playlistItem, offset) { movePlaylistItem(playlistItem, offset) {
var currentPosition = this.playlistItems.indexOf(playlistItem); var currentPosition = this.playlistItems.indexOf(playlistItem);
...@@ -136,15 +136,15 @@ export class PlaylistEditCtrl { ...@@ -136,15 +136,15 @@ export class PlaylistEditCtrl {
this.playlistItems.splice(currentPosition, 1); this.playlistItems.splice(currentPosition, 1);
this.playlistItems.splice(newPosition, 0, playlistItem); this.playlistItems.splice(newPosition, 0, playlistItem);
} }
}; }
movePlaylistItemUp(playlistItem) { movePlaylistItemUp(playlistItem) {
this.movePlaylistItem(playlistItem, -1); this.movePlaylistItem(playlistItem, -1);
}; }
movePlaylistItemDown(playlistItem) { movePlaylistItemDown(playlistItem) {
this.movePlaylistItem(playlistItem, 1); this.movePlaylistItem(playlistItem, 1);
}; }
} }
coreModule.controller('PlaylistEditCtrl', PlaylistEditCtrl); coreModule.controller('PlaylistEditCtrl', PlaylistEditCtrl);
...@@ -39,11 +39,11 @@ export class PlaylistSearchCtrl { ...@@ -39,11 +39,11 @@ export class PlaylistSearchCtrl {
showStarred() { showStarred() {
this.query.starred = !this.query.starred; this.query.starred = !this.query.starred;
this.searchDashboards(); this.searchDashboards();
}; }
queryHasNoFilters() { queryHasNoFilters() {
return this.query.query === '' && this.query.starred === false && this.query.tag.length === 0; return this.query.query === '' && this.query.starred === false && this.query.tag.length === 0;
}; }
filterByTag(tag, evt) { filterByTag(tag, evt) {
this.query.tag.push(tag); this.query.tag.push(tag);
...@@ -52,7 +52,7 @@ export class PlaylistSearchCtrl { ...@@ -52,7 +52,7 @@ export class PlaylistSearchCtrl {
evt.stopPropagation(); evt.stopPropagation();
evt.preventDefault(); evt.preventDefault();
} }
}; }
getTags() { getTags() {
var prom: any = {}; var prom: any = {};
...@@ -65,7 +65,7 @@ export class PlaylistSearchCtrl { ...@@ -65,7 +65,7 @@ export class PlaylistSearchCtrl {
}); });
this.searchStarted(prom); this.searchStarted(prom);
}; }
} }
export function playlistSearchDirective() { export function playlistSearchDirective() {
......
...@@ -25,7 +25,7 @@ export class PlaylistsCtrl { ...@@ -25,7 +25,7 @@ export class PlaylistsCtrl {
this.$scope.appEvent('alert-error', ['Unable to delete playlist', '']); this.$scope.appEvent('alert-error', ['Unable to delete playlist', '']);
this.playlists.push(playlist); this.playlists.push(playlist);
}); });
}; }
removePlaylist(playlist) { removePlaylist(playlist) {
...@@ -38,8 +38,7 @@ export class PlaylistsCtrl { ...@@ -38,8 +38,7 @@ export class PlaylistsCtrl {
this.removePlaylistConfirmed(playlist); this.removePlaylistConfirmed(playlist);
} }
}); });
}
};
} }
coreModule.controller('PlaylistsCtrl', PlaylistsCtrl); coreModule.controller('PlaylistsCtrl', PlaylistsCtrl);
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