summaryrefslogtreecommitdiffstats
path: root/js/controller
diff options
context:
space:
mode:
Diffstat (limited to 'js/controller')
-rw-r--r--js/controller/NavigationController.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js
index 160f77bac..4f7d549bf 100644
--- a/js/controller/NavigationController.js
+++ b/js/controller/NavigationController.js
@@ -175,7 +175,8 @@ function ($route, FEED_TYPE, FeedResource, FolderResource, ItemResource,
// is closed or has no unread articles
existingFolder.getsFeed = true;
- FeedResource.create(feed.url, existingFolder.id, undefined)
+ FeedResource.create(feed.url, existingFolder.id, undefined,
+ feed.user, feed.password)
.then(function (data) {
Publisher.publishAll(data);
@@ -186,6 +187,8 @@ function ($route, FEED_TYPE, FeedResource, FolderResource, ItemResource,
}).finally(function () {
existingFolder.getsFeed = undefined;
feed.url = '';
+ feed.user = '';
+ feed.password = '';
self.addingFeed = false;
});
@@ -202,6 +205,7 @@ function ($route, FEED_TYPE, FeedResource, FolderResource, ItemResource,
self.createFeed(feed);
});
}
+
};
this.createFolder = function (folder) {