mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-12 21:58:57 +02:00
fix: keep GitHub access controls beside the source URL
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Vendored
+19
-19
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user