diff options
Diffstat (limited to 'packages/frontend/src/pages/admin/index.vue')
| -rw-r--r-- | packages/frontend/src/pages/admin/index.vue | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/frontend/src/pages/admin/index.vue b/packages/frontend/src/pages/admin/index.vue index cbd0d12dcc..3a95e0a5a6 100644 --- a/packages/frontend/src/pages/admin/index.vue +++ b/packages/frontend/src/pages/admin/index.vue @@ -19,6 +19,7 @@ SPDX-License-Identifier: AGPL-3.0-only <MkInfo v-if="noBotProtection" warn class="info">{{ i18n.ts.noBotProtectionWarning }} <MkA to="/admin/security" class="_link">{{ i18n.ts.configure }}</MkA></MkInfo> <MkInfo v-if="noEmailServer" warn class="info">{{ i18n.ts.noEmailServerWarning }} <MkA to="/admin/email-settings" class="_link">{{ i18n.ts.configure }}</MkA></MkInfo> <MkInfo v-if="pendingUserApprovals" warn class="info">{{ i18n.ts.pendingUserApprovals }} <MkA to="/admin/approvals" class="_link">{{ i18n.ts.check }}</MkA></MkInfo> + <MkInfo v-if="hasLegacyAuthFetchSetting" warn class="info">{{ i18n.ts.authorizedFetchLegacyWarning }}</MkInfo> </div> <MkSuperMenu :def="menuDef" :grid="narrow"></MkSuperMenu> @@ -69,6 +70,7 @@ const noEmailServer = computed(() => !instance.enableEmail); const noInquiryUrl = computed(() => isEmpty(instance.inquiryUrl)); const thereIsUnresolvedAbuseReport = ref(false); const pendingUserApprovals = ref(false); +const hasLegacyAuthFetchSetting = ref(false); const currentPage = computed(() => router.currentRef.value.child); misskeyApi('admin/abuse-user-reports', { @@ -86,6 +88,11 @@ misskeyApi('admin/show-users', { if (approvals.length > 0) pendingUserApprovals.value = true; }); +misskeyApi('admin/meta') + .then(meta => { + hasLegacyAuthFetchSetting.value = meta.hasLegacyAuthFetchSetting; + }); + const NARROW_THRESHOLD = 600; const ro = new ResizeObserver((entries, observer) => { if (entries.length === 0) return; |