forked from Archives/Athou_commafeed
category is required when subscribing
This commit is contained in:
@@ -53,6 +53,9 @@ function($scope, FeedService, CategoryService) {
|
||||
};
|
||||
|
||||
$scope.save = function() {
|
||||
if (!$scope.sub.categoryId) {
|
||||
return;
|
||||
}
|
||||
FeedService.subscribe($scope.sub, function() {
|
||||
CategoryService.init();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user