1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 19:55:55 +00:00

prefs: fix published shared URL dialog

This commit is contained in:
Andrew Dolgov
2021-02-12 19:17:50 +03:00
parent 7f0800537e
commit 157675d9fd
2 changed files with 10 additions and 8 deletions

View File

@@ -387,17 +387,19 @@ const CommonDialogs = {
Notify.close();
} catch (e) {
this.Error.report(e);
App.Error.report(e);
}
});
},
generatedFeed: function(feed, is_cat, rss_url) {
generatedFeed: function(feed, is_cat, rss_url, feed_title) {
Notify.progress("Loading, please wait...", true);
xhrJson("backend.php", {op: "pref-feeds", method: "getFeedKey", id: feed, is_cat: is_cat}, (reply) => {
try {
const feed_title = Feeds.getName(feed, is_cat);
if (!feed_title && typeof Feeds != "undefined")
feed_title = Feeds.getName(feed, is_cat);
const secret_url = rss_url + "&key=" + encodeURIComponent(reply.link);
const dialog = new fox.SingleUseDialog({
@@ -428,7 +430,7 @@ const CommonDialogs = {
Notify.close();
} catch (e) {
this.Error.report(e);
App.Error.report(e);
}
});
},