summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/repository/utils/dom.js
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-12-23 18:10:19 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-23 18:10:19 +0000
commitb8d021cb606ac86f41a0ef9dacd133a9677f8414 (patch)
treeaee1c216ff06acc7e3587a9a28af95f0392734f4 /app/assets/javascripts/repository/utils/dom.js
parent9dbca64417abbec779a219b9e0df9d289d945032 (diff)
downloadgitlab-ce-b8d021cb606ac86f41a0ef9dacd133a9677f8414.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/repository/utils/dom.js')
-rw-r--r--app/assets/javascripts/repository/utils/dom.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/repository/utils/dom.js b/app/assets/javascripts/repository/utils/dom.js
index abf726194ac..b667cd53b18 100644
--- a/app/assets/javascripts/repository/utils/dom.js
+++ b/app/assets/javascripts/repository/utils/dom.js
@@ -1,7 +1,9 @@
import { joinPaths } from '~/lib/utils/url_utility';
export const updateElementsVisibility = (selector, isVisible) => {
- document.querySelectorAll(selector).forEach(elem => elem.classList.toggle('hidden', !isVisible));
+ document
+ .querySelectorAll(selector)
+ .forEach((elem) => elem.classList.toggle('hidden', !isVisible));
};
export const updateFormAction = (selector, basePath, path) => {