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

This commit is contained in:
bergquist 2016-01-29 00:11:59 +01:00
parent d66932a8a2
commit b6f276265d
3 changed files with 19 additions and 20 deletions

View File

@ -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);

View File

@ -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() {

View File

@ -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);