diff options
author | Maksim Sukharev <antreesy.web@gmail.com> | 2024-03-15 10:31:42 +0100 |
---|---|---|
committer | Maksim Sukharev <antreesy.web@gmail.com> | 2024-03-15 10:31:42 +0100 |
commit | 4b837c0c6f2c74a5ceabe83114c973dd8024abcb (patch) | |
tree | 6289ae59f4cc753abd69be7b6011cce0147232a8 | |
parent | ff172a9222a84b59723d81ac2be20641658b17e0 (diff) |
fix(AdminSettings): show Federation section in production
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
-rw-r--r-- | src/views/AdminSettings.vue | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/views/AdminSettings.vue b/src/views/AdminSettings.vue index 48e1bce76..fe686c2f7 100644 --- a/src/views/AdminSettings.vue +++ b/src/views/AdminSettings.vue @@ -25,8 +25,7 @@ <GeneralSettings /> <MatterbridgeIntegration /> <AllowedGroups /> - <!-- TODO remove OC.debug when Federation feature is ready --> - <Federation v-if="OC.debug" /> + <Federation v-if="supportFederation" /> <BotsSettings /> <Commands /> <WebServerSetupChecks /> @@ -40,6 +39,8 @@ </template> <script> +import { getCapabilities } from '@nextcloud/capabilities' + import AllowedGroups from '../components/AdminSettings/AllowedGroups.vue' import BotsSettings from '../components/AdminSettings/BotsSettings.vue' import Commands from '../components/AdminSettings/Commands.vue' @@ -54,6 +55,8 @@ import StunServers from '../components/AdminSettings/StunServers.vue' import TurnServers from '../components/AdminSettings/TurnServers.vue' import WebServerSetupChecks from '../components/AdminSettings/WebServerSetupChecks.vue' +const supportFederation = getCapabilities()?.spreed?.features?.includes('federation-v1') + export default { name: 'AdminSettings', @@ -72,5 +75,9 @@ export default { TurnServers, WebServerSetupChecks, }, + + setup() { + return { supportFederation } + } } </script> |