diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2018-03-28 12:18:53 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2018-03-28 13:17:30 +0300 |
commit | 8b72bcfae0d7880c5951c066c68f8180e49e7bca (patch) | |
tree | 349dd829d873dee5ee22695798f65052cc7570f6 /app/assets/javascripts/vue_merge_request_widget | |
parent | 8f7cf2ede5ef37d8c333aef7962de0191492f7c1 (diff) |
Added Utility Function for WebIDE URL
Diffstat (limited to 'app/assets/javascripts/vue_merge_request_widget')
-rw-r--r-- | app/assets/javascripts/vue_merge_request_widget/components/mr_widget_header.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/vue_merge_request_widget/components/mr_widget_header.vue b/app/assets/javascripts/vue_merge_request_widget/components/mr_widget_header.vue index e8cdce0e1dd..18ee4c62bf1 100644 --- a/app/assets/javascripts/vue_merge_request_widget/components/mr_widget_header.vue +++ b/app/assets/javascripts/vue_merge_request_widget/components/mr_widget_header.vue @@ -1,6 +1,7 @@ <script> import tooltip from '~/vue_shared/directives/tooltip'; import { n__ } from '~/locale'; +import { webIDEUrl } from '~/lib/utils/url_utility'; import icon from '~/vue_shared/components/icon.vue'; import clipboardButton from '~/vue_shared/components/clipboard_button.vue'; @@ -42,7 +43,7 @@ export default { return this.isBranchTitleLong(this.mr.targetBranch); }, webIdePath() { - return `${gon.relative_url_root}/-/ide/project${this.mr.statusPath.replace('.json', '')}`; + return webIDEUrl(this.mr.statusPath.replace('.json', '')); }, }, methods: { |