mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-01 13:51:05 -05:00
Merge pull request #1000 from micedre/fix-issue-986
Fix #986 : Visibility is now transmitted with gitlab V4 api
This commit is contained in:
commit
3817d580dd
1 changed files with 1 additions and 1 deletions
|
@ -1479,7 +1479,7 @@ $('#snippetExportModalConfirm').click(function () {
|
||||||
file_name: $('#snippetExportModalFileName').val(),
|
file_name: $('#snippetExportModalFileName').val(),
|
||||||
code: editor.getValue(),
|
code: editor.getValue(),
|
||||||
visibility_level: $('#snippetExportModalVisibility').val(),
|
visibility_level: $('#snippetExportModalVisibility').val(),
|
||||||
visibility: $('#snippetExportModalVisibility').val() === 0 ? 'private' : ($('#snippetExportModalVisibility').val() === 10 ? 'internal' : '')
|
visibility: $('#snippetExportModalVisibility').val() === '0' ? 'private' : ($('#snippetExportModalVisibility').val() === '10' ? 'internal' : 'private')
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!data.title || !data.file_name || !data.code || !data.visibility_level || !$('#snippetExportModalProjects').val()) return
|
if (!data.title || !data.file_name || !data.code || !data.visibility_level || !$('#snippetExportModalProjects').val()) return
|
||||||
|
|
Loading…
Reference in a new issue