diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-19 00:09:37 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-19 00:09:37 +0300 |
commit | cace5e8ff1f766b8098e35adc94abc4402aeb2a9 (patch) | |
tree | 96bea3616ee60702be89f4845580f3b3db22f936 /app/assets/javascripts/webhooks/index.js | |
parent | e4220eeccaf1d53444fdd9102a4061336f91784e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/webhooks/index.js')
-rw-r--r-- | app/assets/javascripts/webhooks/index.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/assets/javascripts/webhooks/index.js b/app/assets/javascripts/webhooks/index.js index bfa33560fa5..1b2b33e44c1 100644 --- a/app/assets/javascripts/webhooks/index.js +++ b/app/assets/javascripts/webhooks/index.js @@ -8,11 +8,18 @@ export default () => { return null; } + const { url: initialUrl, urlVariables } = el.dataset; + return new Vue({ el, name: 'WebhookFormRoot', render(createElement) { - return createElement(FormUrlApp, {}); + return createElement(FormUrlApp, { + props: { + initialUrl, + initialUrlVariables: urlVariables ? JSON.parse(urlVariables) : undefined, + }, + }); }, }); }; |