From 4e0b40e781761024b8ef13525e52fa3a92897af5 Mon Sep 17 00:00:00 2001 From: Marc Bernard <59966492+mbtools@users.noreply.github.com> Date: Sat, 3 May 2025 10:16:57 +0200 Subject: [PATCH] Make repo list component reusable (#7233) --- src/ui/zabapgit_js_common.w3mi.data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/zabapgit_js_common.w3mi.data.js b/src/ui/zabapgit_js_common.w3mi.data.js index 52269b0c7..45d369765 100644 --- a/src/ui/zabapgit_js_common.w3mi.data.js +++ b/src/ui/zabapgit_js_common.w3mi.data.js @@ -254,7 +254,7 @@ function RepoOverViewHelper(opts) { this.focusFilterKey = opts.focusFilterKey; } this.setHooks(); - this.pageId = "RepoOverViewHelperState"; // constant is OK for this case + this.pageId = (opts && opts.pageId) ? opts.pageId : "RepoOverViewHelperState"; this.isDetailsDisplayed = false; this.isOnlyFavoritesDisplayed = false; this.detailCssClass = findStyleSheetByName(".repo-overview .ro-detail");