Skip to content

Commit

Permalink
add noconnect state when connecting outside cm
Browse files Browse the repository at this point in the history
  • Loading branch information
garrrikkotua committed Sep 12, 2024
1 parent 669328a commit f2f886b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ const openGithubInstallation = () => window.open(config.gitHubInstallationUrl, '
const copy = () => {
if (navigator.clipboard) {
navigator.clipboard.writeText(config.gitHubInstallationUrl);
const urlWithState = `${config.gitHubInstallationUrl}?state=noconnect`;
navigator.clipboard.writeText(urlWithState);
copied.value = true;
setTimeout(() => {
copied.value = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ onMounted(async () => {
});
showGitlabDialog.value = false;
} else {
const state = params.get('state');
if (state === 'noconnect') {
return;
}
showGithubDialog.value = true;
await store.dispatch('integration/doGithubConnect', {
code,
Expand Down

0 comments on commit f2f886b

Please sign in to comment.