Commit b6f27626 by bergquist

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

parent d66932a8
......@@ -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);
......@@ -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() {
......
......@@ -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);
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