summaryrefslogtreecommitdiff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorConstance Okoghenun <cokoghenun@gitlab.com>2018-02-12 11:58:45 +0100
committerConstance Okoghenun <cokoghenun@gitlab.com>2018-02-12 11:59:11 +0100
commitc4199f9e77e8f1dcdd1850fa81bbbe4635c7cac1 (patch)
tree3ff494de5303bfafeb65f0039b230b5aad96f2c0 /app/assets/javascripts
parent7959d46a892f90614306ba01f338bfc9009181fd (diff)
downloadgitlab-ce-c4199f9e77e8f1dcdd1850fa81bbbe4635c7cac1.tar.gz
changed params passed to from a string to an object
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/gpg_badges.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/gpg_badges.js b/app/assets/javascripts/gpg_badges.js
index 5e17ee7d32d..57852de7dad 100644
--- a/app/assets/javascripts/gpg_badges.js
+++ b/app/assets/javascripts/gpg_badges.js
@@ -1,3 +1,4 @@
+import { parseQueryStringIntoObject } from '~/lib/utils/common_utils';
import axios from '~/lib/utils/axios_utils';
import flash from '~/flash';
import { __ } from '~/locale';
@@ -9,8 +10,8 @@ export default class GpgBadges {
badges.html('<i class="fa fa-spinner fa-spin"></i>');
- const params = form.serialize();
- return axios.get(form.data('signatures-path'), { params })
+ const params = parseQueryStringIntoObject(form.serialize());
+ return axios.get(form.data('signatures-path'), params)
.then(({ data }) => {
data.signatures.forEach((signature) => {
badges.filter(`[data-commit-sha="${signature.commit_sha}"]`).replaceWith(signature.html);