diff options
Diffstat (limited to 'app/assets/javascripts/repository/mutations/lock_path.mutation.graphql')
-rw-r--r-- | app/assets/javascripts/repository/mutations/lock_path.mutation.graphql | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/assets/javascripts/repository/mutations/lock_path.mutation.graphql b/app/assets/javascripts/repository/mutations/lock_path.mutation.graphql new file mode 100644 index 00000000000..eaebc4ddf17 --- /dev/null +++ b/app/assets/javascripts/repository/mutations/lock_path.mutation.graphql @@ -0,0 +1,13 @@ +mutation toggleLock($projectPath: ID!, $filePath: String!, $lock: Boolean!) { + projectSetLocked(input: { projectPath: $projectPath, filePath: $filePath, lock: $lock }) { + project { + id + pathLocks { + nodes { + path + } + } + } + errors + } +} |