Skip to content

Commit 3817d58

Browse files
authored
Merge pull request #1000 from micedre/fix-issue-986
Fix #986 : Visibility is now transmitted with gitlab V4 api
2 parents 466dc9b + 702f52f commit 3817d58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,7 @@ $('#snippetExportModalConfirm').click(function () {
14791479
file_name: $('#snippetExportModalFileName').val(),
14801480
code: editor.getValue(),
14811481
visibility_level: $('#snippetExportModalVisibility').val(),
1482-
visibility: $('#snippetExportModalVisibility').val() === 0 ? 'private' : ($('#snippetExportModalVisibility').val() === 10 ? 'internal' : '')
1482+
visibility: $('#snippetExportModalVisibility').val() === '0' ? 'private' : ($('#snippetExportModalVisibility').val() === '10' ? 'internal' : 'private')
14831483
}
14841484

14851485
if (!data.title || !data.file_name || !data.code || !data.visibility_level || !$('#snippetExportModalProjects').val()) return

0 commit comments

Comments
 (0)