Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Luc Bourdot
codimd
Commits
329d39d0
Unverified
Commit
329d39d0
authored
Mar 09, 2019
by
Christoph (Sheogorath) Kern
Committed by
GitHub
Mar 09, 2019
Browse files
Merge pull request #1131 from SISheogorath/fix/gitlabSnippets
Fix shown but broken GitLab snippets
parents
d1b2fb22
bcb79726
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/config/index.js
View file @
329d39d0
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment