diff --git a/plugins/tools/batch-install-plugins/batch_install_plugins.py b/plugins/tools/batch-install-plugins/batch_install_plugins.py index beb6735..708566a 100644 --- a/plugins/tools/batch-install-plugins/batch_install_plugins.py +++ b/plugins/tools/batch-install-plugins/batch_install_plugins.py @@ -937,14 +937,6 @@ def _parse_repo_inputs(repo_value: str) -> List[str]: return repos or [DEFAULT_REPO] -def _format_repo_summary(repos: List[str]) -> str: - if not repos: - return DEFAULT_REPO - if len(repos) <= 2: - return ", ".join(repos) - return f"{repos[0]}, {repos[1]} +{len(repos) - 2}" - - def _sort_candidates_by_repo_order( candidates: List[PluginCandidate], repos: List[str], @@ -1054,15 +1046,9 @@ def _build_selection_dialog_js( " overlay.innerHTML = `", "
", "
", - "
", - "
", - "
${escapeHtml(ui.title)}
", - "
${escapeHtml(ui.list_title)}
", - "
", - "
", - " ${escapeHtml(ui.repo_label)}", - " ${escapeHtml(ui.repo)}", - "
", + "
", + "
${escapeHtml(ui.title)}
", + "
${escapeHtml(ui.list_title)}
", "
", "
", "
", @@ -1332,14 +1318,12 @@ def _build_selection_dialog_js( async def _request_plugin_selection( event_call: Optional[Any], lang: str, - repo: str, candidates: List[PluginCandidate], hint: str, ) -> Tuple[Optional[List[PluginCandidate]], Optional[str]]: if not event_call: return candidates, None - repo_list = _parse_repo_inputs(repo) options = [ { "id": candidate.selection_id, @@ -1356,7 +1340,6 @@ async def _request_plugin_selection( "title": _t(lang, "confirm_title"), "list_title": _t(lang, "status_list_title", count=len(candidates)), "repo_label": _selection_t(lang, "repo_label"), - "repo": _format_repo_summary(repo_list), "hint": hint.strip(), "select_all": _selection_t(lang, "select_all"), "clear_all": _selection_t(lang, "clear_all"), @@ -1721,7 +1704,7 @@ class Tools: hint_msg = _build_confirmation_hint(lang, repo, exclude_keywords) selected_candidates, confirm_error = await _request_plugin_selection( - __event_call__, lang, repo, filtered, hint_msg + __event_call__, lang, filtered, hint_msg ) if confirm_error: return await _finalize_message(