Skip to content
Snippets Groups Projects
Unverified Commit b635b064 authored by Outvi V's avatar Outvi V Committed by GitHub
Browse files

fix: integration links (#8036)

parent 640fc337
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
</FormSwitch>
<template v-if="enableDiscordIntegration">
<FormInfo>Callback URL: {{ `${url}/api/dc/cb` }}</FormInfo>
<FormInfo>Callback URL: {{ `${uri}/api/dc/cb` }}</FormInfo>
<FormInput v-model="discordClientId">
<template #prefix><i class="fas fa-key"></i></template>
......@@ -67,6 +67,7 @@ export default defineComponent({
methods: {
async init() {
const meta = await os.api('meta', { detail: true });
this.uri = meta.uri;
this.enableDiscordIntegration = meta.enableDiscordIntegration;
this.discordClientId = meta.discordClientId;
this.discordClientSecret = meta.discordClientSecret;
......
......@@ -6,7 +6,7 @@
</FormSwitch>
<template v-if="enableGithubIntegration">
<FormInfo>Callback URL: {{ `${url}/api/gh/cb` }}</FormInfo>
<FormInfo>Callback URL: {{ `${uri}/api/gh/cb` }}</FormInfo>
<FormInput v-model="githubClientId">
<template #prefix><i class="fas fa-key"></i></template>
......@@ -67,6 +67,7 @@ export default defineComponent({
methods: {
async init() {
const meta = await os.api('meta', { detail: true });
this.uri = meta.uri;
this.enableGithubIntegration = meta.enableGithubIntegration;
this.githubClientId = meta.githubClientId;
this.githubClientSecret = meta.githubClientSecret;
......
......@@ -6,7 +6,7 @@
</FormSwitch>
<template v-if="enableTwitterIntegration">
<FormInfo>Callback URL: {{ `${url}/api/tw/cb` }}</FormInfo>
<FormInfo>Callback URL: {{ `${uri}/api/tw/cb` }}</FormInfo>
<FormInput v-model="twitterConsumerKey">
<template #prefix><i class="fas fa-key"></i></template>
......@@ -67,6 +67,7 @@ export default defineComponent({
methods: {
async init() {
const meta = await os.api('meta', { detail: true });
this.uri = meta.uri;
this.enableTwitterIntegration = meta.enableTwitterIntegration;
this.twitterConsumerKey = meta.twitterConsumerKey;
this.twitterConsumerSecret = meta.twitterConsumerSecret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment