summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Tang <dtang@gitlab.com>2018-08-21 16:28:00 +0000
committerDennis Tang <dtang@gitlab.com>2018-08-21 20:32:48 +0000
commit0c2c47687f7478946c4a53393c089153f409e910 (patch)
tree293c1762158331e35fc27bb8725d0dc281fe1589
parentc006f244d50d612ead11dfbf9c0ff982af24c350 (diff)
downloadgitlab-ce-44005-improve-handling-of-projects-shared-with-a-group.tar.gz
-rw-r--r--app/assets/javascripts/pages/groups/show/group_tabs.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/app/assets/javascripts/pages/groups/show/group_tabs.js b/app/assets/javascripts/pages/groups/show/group_tabs.js
index 8fb98dcda2d..c6fe61d2bd9 100644
--- a/app/assets/javascripts/pages/groups/show/group_tabs.js
+++ b/app/assets/javascripts/pages/groups/show/group_tabs.js
@@ -109,12 +109,10 @@ export default class GroupTabs extends UserTabs {
action,
};
- if (this.groupFilterList) {
- this.groupFilterList.unbindEvents();
+ if (!this.loaded[action]) {
+ const filterableList = new GroupFilterableList(opts);
+ filterableList.initSearch();
}
-
- this.groupFilterList = new GroupFilterableList(opts);
- this.groupFilterList.initSearch();
}
cleanFilterState() {
@@ -125,7 +123,7 @@ export default class GroupTabs extends UserTabs {
return;
}
- const newState = removeParams(['filter', 'page'], window.location.search);
+ const newState = removeParams(['page'], window.location.search);
window.history.replaceState(
{