diff --git a/lib/Settings/Admin/AdminSettings.php b/lib/Settings/Admin/AdminSettings.php index 326c477d00b..2d3893a4d3a 100644 --- a/lib/Settings/Admin/AdminSettings.php +++ b/lib/Settings/Admin/AdminSettings.php @@ -112,6 +112,10 @@ protected function initCommands(): void { protected function initFederation(): void { $this->initialState->provideInitialState('federation_enabled', $this->serverConfig->getAppValue('spreed', 'federation_enabled', 'no')); + $this->initialState->provideInitialState('federation_incoming_enabled', $this->serverConfig->getAppValue('spreed', 'federation_incoming_enabled', '1')); + $this->initialState->provideInitialState('federation_outgoing_enabled', $this->serverConfig->getAppValue('spreed', 'federation_outgoing_enabled', '1')); + $this->initialState->provideInitialState('federation_only_trusted_servers', $this->serverConfig->getAppValue('spreed', 'federation_only_trusted_servers', '0')); + $this->initialState->provideInitialState('federation_allowed_groups', $this->serverConfig->getAppValue('spreed', 'federation_allowed_groups', '[]')); } protected function initMatterbridge(): void { diff --git a/src/components/AdminSettings/Federation.vue b/src/components/AdminSettings/Federation.vue index 33b3cb7e6df..ae16b011c7c 100644 --- a/src/components/AdminSettings/Federation.vue +++ b/src/components/AdminSettings/Federation.vue @@ -21,7 +21,7 @@ --> @@ -77,4 +253,24 @@ small { border-radius: 16px; padding: 0 9px; } + +h3 { + margin-top: 24px; + font-weight: bold; +} + +.additional-top-margin { + margin-top: 10px; +} + +.form { + display: flex; + align-items: flex-end; + gap: 10px; + padding-top: 5px; + + &__select { + min-width: 300px !important; + } +}