mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-18 19:01:29 +00:00
fix plugins not shown as already installed if they have more than 1 dash
This commit is contained in:
@@ -454,7 +454,7 @@ const Helpers = {
|
|||||||
|
|
||||||
dialog.entries.forEach((plugin) => {
|
dialog.entries.forEach((plugin) => {
|
||||||
const is_installed = (dialog.installed_plugins
|
const is_installed = (dialog.installed_plugins
|
||||||
.filter((p) => plugin.topics.map((t) => t.replace(/-/, "_")).includes(p))).length > 0;
|
.filter((p) => plugin.topics.map((t) => t.replace(/-/g, "_")).includes(p))).length > 0;
|
||||||
|
|
||||||
if (search_tokens.length == 0 ||
|
if (search_tokens.length == 0 ||
|
||||||
Object.values(plugin).filter((pval) =>
|
Object.values(plugin).filter((pval) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user