mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
category is required when subscribing
This commit is contained in:
@@ -53,6 +53,9 @@ function($scope, FeedService, CategoryService) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.save = function() {
|
$scope.save = function() {
|
||||||
|
if (!$scope.sub.categoryId) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
FeedService.subscribe($scope.sub, function() {
|
FeedService.subscribe($scope.sub, function() {
|
||||||
CategoryService.init();
|
CategoryService.init();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user