fix: keep GitHub access controls beside the source URL

This commit is contained in:
tdurieux
2026-09-10 18:04:56 +02:00
parent 271ca9fd80
commit 68d9c54fcf
7 changed files with 103 additions and 54 deletions
+8 -1
View File
@@ -1118,7 +1118,14 @@ export const anonymizeController = function (state, http, html, params, location
}
});
http.get("/github/connections").then(res => { state.githubConnections = res.data; }).catch(() => {});
http.get("/github/connections").then(res => {
state.githubConnections = res.data;
// Preserve saved resources and an explicit or restored draft choice.
if (!params.repoId && !params.pullRequestId && !params.gistId && state.githubConnection === undefined
&& res.data.appEnabled && res.data.appConnected) {
state.githubConnection = "github-app";
}
}).catch(() => {});
// URL change handler - auto-detect type
state.urlSelected = async (preserveDraft = false) => {
+19 -19
View File
File diff suppressed because one or more lines are too long