Make repo list component reusable (#7233)

This commit is contained in:
Marc Bernard 2025-05-03 10:16:57 +02:00 committed by GitHub
parent 63084061b8
commit 4e0b40e781
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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");