summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2019-03-09 14:50:47 +0100
committerGitHub2019-03-09 14:50:47 +0100
commit329d39d0d00ce7c15b8b7ad7b9a4e0338835486d (patch)
tree5985a85b219581dbaaa30e3398ab9bf2bf93244d /lib
parentd1b2fb2258ae7e44457541c96e3d03f13ae1cb9e (diff)
parentbcb7972607a1b377e5f0d15817798327d1c4fb8b (diff)
Merge pull request #1131 from SISheogorath/fix/gitlabSnippets
Fix shown but broken GitLab snippets
Diffstat (limited to 'lib')
-rw-r--r--lib/config/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/config/index.js b/lib/config/index.js
index cbe6c39c..e5d02dc1 100644
--- a/lib/config/index.js
+++ b/lib/config/index.js
@@ -128,7 +128,7 @@ if (config.gitlab && config.gitlab.version !== 'v4' && config.gitlab.version !==
config.gitlab.version = 'v4'
}
// If gitlab scope is api, enable snippets Export/import
-config.isGitlabSnippetsEnable = (!config.gitlab.scope || config.gitlab.scope === 'api')
+config.isGitlabSnippetsEnable = (!config.gitlab.scope || config.gitlab.scope === 'api') && config.isGitLabEnable
// Only update i18n files in development setups
config.updateI18nFiles = (env === Environment.development)