Commit d4a20000 authored by Tom Quirk's avatar Tom Quirk

Mount new branch app for Jira Connect

parent 629207ab
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
this.displayAlert({ this.displayAlert({
title: __('New branch was successfully created.'), title: __('New branch was successfully created.'),
message: __('You can now close this window and return to Jira'), message: __('You can now close this window and return to Jira.'),
variant: 'success', variant: 'success',
primaryButtonLink: 'jira', primaryButtonLink: 'jira',
primaryButtonText: __('Return to Jira'), primaryButtonText: __('Return to Jira'),
......
import Vue from 'vue';
import VueApollo from 'vue-apollo';
import JiraConnectNewBranchForm from '~/jira_connect/branches/components/new_branch_form.vue';
import createDefaultClient from '~/lib/graphql';
Vue.use(VueApollo);
export default async function initJiraConnectBranches() {
const el = document.querySelector('.js-jira-connect-create-branch');
if (!el) {
return null;
}
const { initialBranchName } = el.dataset;
const apolloProvider = new VueApollo({
defaultClient: createDefaultClient(
{},
{
assumeImmutableResults: true,
},
),
});
return new Vue({
el,
apolloProvider,
render(createElement) {
return createElement(JiraConnectNewBranchForm, {
props: {
initialBranchName,
},
});
},
});
}
import initJiraConnectBranches from '~/jira_connect/branches';
initJiraConnectBranches();
...@@ -13461,6 +13461,12 @@ msgstr "" ...@@ -13461,6 +13461,12 @@ msgstr ""
msgid "Failed to create a to-do item for the design." msgid "Failed to create a to-do item for the design."
msgstr "" msgstr ""
msgid "Failed to create branch."
msgstr ""
msgid "Failed to create branch. Please try again."
msgstr ""
msgid "Failed to create framework" msgid "Failed to create framework"
msgstr "" msgstr ""
...@@ -21901,6 +21907,9 @@ msgstr "" ...@@ -21901,6 +21907,9 @@ msgstr ""
msgid "New branch unavailable" msgid "New branch unavailable"
msgstr "" msgstr ""
msgid "New branch was successfully created."
msgstr ""
msgid "New changes were added. %{linkStart}Reload the page to review them%{linkEnd}" msgid "New changes were added. %{linkStart}Reload the page to review them%{linkEnd}"
msgstr "" msgstr ""
...@@ -28023,6 +28032,9 @@ msgstr "" ...@@ -28023,6 +28032,9 @@ msgstr ""
msgid "Retry verification" msgid "Retry verification"
msgstr "" msgstr ""
msgid "Return to Jira"
msgstr ""
msgid "Reveal value" msgid "Reveal value"
msgid_plural "Reveal values" msgid_plural "Reveal values"
msgstr[0] "" msgstr[0] ""
...@@ -30855,6 +30867,9 @@ msgstr "" ...@@ -30855,6 +30867,9 @@ msgstr ""
msgid "Source IP" msgid "Source IP"
msgstr "" msgstr ""
msgid "Source branch"
msgstr ""
msgid "Source branch: %{source_branch_open}%{source_branch}%{source_branch_close}" msgid "Source branch: %{source_branch_open}%{source_branch}%{source_branch_close}"
msgstr "" msgstr ""
...@@ -37446,6 +37461,9 @@ msgstr "" ...@@ -37446,6 +37461,9 @@ msgstr ""
msgid "You can notify the app / group or a project by sending them an email notification" msgid "You can notify the app / group or a project by sending them an email notification"
msgstr "" msgstr ""
msgid "You can now close this window and return to Jira."
msgstr ""
msgid "You can now close this window." msgid "You can now close this window."
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment