Skip to content

Commit

Permalink
Save json to graphql-edit-headers
Browse files Browse the repository at this point in the history
  • Loading branch information
adimit committed Sep 23, 2020
1 parent af9b235 commit 404aa31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphql-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ when sending a request."
"Accept buffer contents and write to `graphql-extra-headers'."
(interactive)
(unless (graphql-edit-headers-buffer-p) (error "Not in a GraphQL headers buffer"))
(message "TODO: save to graphql-extra-headers")
(graphql-edit-buffers--kill-pop-up-buffer))
(setq graphql-extra-headers (json-read-from-string (buffer-string)))
(graphql-edit-headers--kill-pop-up-buffer))

(defun graphql-edit-headers-abort ()
"Kill current headers buffer and return to graphql file."
Expand Down

0 comments on commit 404aa31

Please sign in to comment.