Skip to content

Commit bcb7972

Browse files
committed
Fix shown but broken GitLab snippets
To provide a GitLab integration we need the GitLab integration to be configured. Otherwise we shouldn't show the Snippet button. This patch adds the requirement to the variable that decides if the import from snippets button shows up or not. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
1 parent de0acbb commit bcb7972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ if (config.gitlab && config.gitlab.version !== 'v4' && config.gitlab.version !==
128128
config.gitlab.version = 'v4'
129129
}
130130
// If gitlab scope is api, enable snippets Export/import
131-
config.isGitlabSnippetsEnable = (!config.gitlab.scope || config.gitlab.scope === 'api')
131+
config.isGitlabSnippetsEnable = (!config.gitlab.scope || config.gitlab.scope === 'api') && config.isGitLabEnable
132132

133133
// Only update i18n files in development setups
134134
config.updateI18nFiles = (env === Environment.development)

0 commit comments

Comments
 (0)