summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-11-07 13:35:10 +0100
committerGitHub2018-11-07 13:35:10 +0100
commit4e5e7df4f8ed5b4317ab9205ceb8c2b3231517ad (patch)
tree874d45a71b209e8e598e4568784e364b96d28678 /lib
parentdbcb469fd37520b29fe018aa4233a477cb091c8f (diff)
parent67f8a64f2b1ea653b567a48ac6aa760b03c7189c (diff)
Merge pull request #1041 from micedre/export-menu-fix
Fix menu when gitlab is enabled
Diffstat (limited to '')
-rw-r--r--lib/config/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/config/index.js b/lib/config/index.js
index f8b68e30..501fdca3 100644
--- a/lib/config/index.js
+++ b/lib/config/index.js
@@ -110,6 +110,8 @@ if (config.gitlab && config.gitlab.version !== 'v4' && config.gitlab.version !==
logger.warn('config.js contains wrong version (' + config.gitlab.version + ') for gitlab api; it should be \'v3\' or \'v4\'. Defaulting to v4')
config.gitlab.version = 'v4'
}
+// If gitlab scope is api, enable snippets Export/import
+config.isGitlabSnippetsEnable = (!config.gitlab.scope || config.gitlab.scope === 'api')
// Only update i18n files in development setups
config.updateI18nFiles = (env === Environment.development)