diff options
author | skiingwiz <skiingwiz@gmail.com> | 2021-03-27 22:15:10 -0400 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2021-04-02 11:15:17 +0200 |
commit | 04519388ce1bf3acc9997b35748762a7380e5954 (patch) | |
tree | 628b743c43c39aa4319153f3e5482ff35fd383af /js/controller | |
parent | e917127a7bab29b06ffca597fbb554cf57f6d212 (diff) |
Allow directly adding a feed without going through the discovery process
Signed-off-by: skiingwiz <skiingwiz@gmail.com>
Diffstat (limited to 'js/controller')
-rw-r--r-- | js/controller/NavigationController.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js index 1b183cbdf..68a46900e 100644 --- a/js/controller/NavigationController.js +++ b/js/controller/NavigationController.js @@ -210,7 +210,9 @@ app.controller('NavigationController', function ($route, FEED_TYPE, FeedResource feed.url += regResult[2]; } - FeedResource.create(feed.url, existingFolder.id, undefined, feed.user, feed.password).then(function (data) { + var autoDiscover = feed.autoDiscover ? true : false; + FeedResource.create(feed.url, existingFolder.id, undefined, feed.user, feed.password, autoDiscover) + .then(function (data) { Publisher.publishAll(data); // set folder as default @@ -220,6 +222,7 @@ app.controller('NavigationController', function ($route, FEED_TYPE, FeedResource feed.url = ''; feed.user = ''; feed.password = ''; + feed.autoDiscover = true; self.addingFeed = false; }); |