Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-06-14 18:09:43 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-06-14 18:09:43 +0300
commit7a33080fff9a735cbe77968d67b13ffa92c0ffae (patch)
tree71a880649c8d3e551ec6bd94e93d08a9a9b5bde7 /app/assets/javascripts/protected_branches/protected_branch_create.js
parent9223573b85bcfdd21953f52e0d2c5cb587e366a1 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/protected_branches/protected_branch_create.js')
-rw-r--r--app/assets/javascripts/protected_branches/protected_branch_create.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/assets/javascripts/protected_branches/protected_branch_create.js b/app/assets/javascripts/protected_branches/protected_branch_create.js
index cdbe39fd5e0..a11201627a4 100644
--- a/app/assets/javascripts/protected_branches/protected_branch_create.js
+++ b/app/assets/javascripts/protected_branches/protected_branch_create.js
@@ -95,11 +95,7 @@ export default class ProtectedBranchCreate {
}
hasProtectedBranchSuccessAlert() {
- return (
- window.gon?.features?.branchRules &&
- this.isLocalStorageAvailable &&
- localStorage.getItem(IS_PROTECTED_BRANCH_CREATED)
- );
+ return this.isLocalStorageAvailable && localStorage.getItem(IS_PROTECTED_BRANCH_CREATED);
}
createSuccessAlert() {