diff options
-rw-r--r-- | lib/Controller/PageController.php | 2 | ||||
-rw-r--r-- | src/components/AppSettingsMenu.vue | 2 | ||||
-rw-r--r-- | src/views/Setup.vue | 2 | ||||
-rw-r--r-- | tests/Unit/Controller/PageControllerTest.php | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index ce23c3878..f04ceb478 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -176,7 +176,7 @@ class PageController extends Controller { ); $this->initialStateService->provideInitialState( - 'allow_new_mail_accounts', + 'allow-new-accounts', $this->config->getAppValue('mail', 'allow_new_mail_accounts', 'yes') === 'yes' ); diff --git a/src/components/AppSettingsMenu.vue b/src/components/AppSettingsMenu.vue index 3abac5ce2..85e9018ed 100644 --- a/src/components/AppSettingsMenu.vue +++ b/src/components/AppSettingsMenu.vue @@ -145,7 +145,7 @@ export default { return this.$store.getters.getPreference('tag-classified-messages', 'true') === 'true' }, allowNewMailAccounts() { - return this.$store.getters.getPreference('allow-new-accounts', 'true') === 'true' + return this.$store.getters.getPreference('allow-new-accounts', true) }, }, methods: { diff --git a/src/views/Setup.vue b/src/views/Setup.vue index 15af71d99..7459c620e 100644 --- a/src/views/Setup.vue +++ b/src/views/Setup.vue @@ -47,7 +47,7 @@ export default { return { displayName: loadState('mail', 'prefill_displayName'), email: loadState('mail', 'prefill_email'), - allowNewMailAccounts: loadState('mail', 'allow_new_mail_accounts'), + allowNewMailAccounts: loadState('mail', 'allow-new-accounts', true), error: null, } }, diff --git a/tests/Unit/Controller/PageControllerTest.php b/tests/Unit/Controller/PageControllerTest.php index 156a59b40..190a87e7f 100644 --- a/tests/Unit/Controller/PageControllerTest.php +++ b/tests/Unit/Controller/PageControllerTest.php @@ -249,7 +249,7 @@ class PageControllerTest extends TestCase { ['prefill_email', 'jane@doe.cz'], ['outbox-messages', []], ['disable-scheduled-send', false], - ['allow_new_mail_accounts', true] + ['allow-new-accounts', true] ); $expected = new TemplateResponse($this->appName, 'index', |