mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Support new redirect params
This commit is contained in:
1 parent
7ef7cd3b30
commit
54c42e08cb
4 files changed
+8
-4
No files matched your search
@@ -49,7 +49,8 @@
|
||||
redirect.searchParams.append('github-installed', 'true');
|
||||
const target = new URL(`${sdk.forProject.client.config.endpoint}/v1/vcs/github/authorize`);
|
||||
target.searchParams.set('projectId', $page.params.project);
|
||||
target.searchParams.set('redirect', redirect.toString());
|
||||
target.searchParams.set('success', redirect.toString());
|
||||
target.searchParams.set('failure', redirect.toString());
|
||||
return target;
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -38,7 +38,8 @@
|
||||
redirect.searchParams.append('github-installed', 'true');
|
||||
const target = new URL(`${sdk.forProject.client.config.endpoint}/v1/vcs/github/authorize`);
|
||||
target.searchParams.set('projectId', $page.params.project);
|
||||
target.searchParams.set('redirect', redirect.toString());
|
||||
target.searchParams.set('success', redirect.toString());
|
||||
target.searchParams.set('failure', redirect.toString());
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
redirect.searchParams.append('alert', 'installation-created');
|
||||
const target = new URL(`${sdk.forProject.client.config.endpoint}/v1/vcs/github/authorize`);
|
||||
target.searchParams.set('projectId', $page.params.project);
|
||||
target.searchParams.set('redirect', redirect.toString());
|
||||
target.searchParams.set('success', redirect.toString());
|
||||
target.searchParams.set('failure', redirect.toString());
|
||||
goto(target);
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -63,7 +63,8 @@
|
||||
redirect.searchParams.append('alert', 'installation-updated');
|
||||
const target = new URL(`${sdk.forProject.client.config.endpoint}/v1/vcs/github/authorize`);
|
||||
target.searchParams.set('projectId', $page.params.project);
|
||||
target.searchParams.set('redirect', redirect.toString());
|
||||
target.searchParams.set('success', redirect.toString());
|
||||
target.searchParams.set('failure', redirect.toString());
|
||||
goto(target);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user