mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
Additionally: - Fixes a so-far unknown bug/feature which caused only the first selection in a multi-select to be uploaded. Honestly don't think it'll appear often that someone wishes to do that though. 'fix' is to pass `true` to the function gathering selected text. Leftover debt: - Some println's used to debug - No tests. Currently known issues: - Does not handle errors from GQL for instance in an ideal way. - UI of 'Create Snippet' dialog may require some updating. Specifically account select may be moved, the UI should be resized, etc. - The first account is currently not selected automatically. - Title can be left empty, but should be required. - The 'Create Gist' button should not appear when content is empty or there are no logged in accounts. Project is left intentionally unselected, but might be best to automatically select in the future? GitOrigin-RevId: f2caeee92d07ada938dfda131884d166cd007336
8 lines
366 B
GraphQL
8 lines
366 B
GraphQL
mutation($title: String!, $description: String, $visibilityLevel: VisibilityLevelsEnum!, $projectPath: ID, $blobActions: [SnippetBlobActionInputType!]!) {
|
|
createSnippet(input: {title: $title, description: $description, visibilityLevel: $visibilityLevel, projectPath: $projectPath, blobActions: $blobActions}) {
|
|
snippet {
|
|
...snippet
|
|
}
|
|
errors
|
|
}
|
|
} |