From 9c07e47c78781a66587313e0c70d5c37cfe81703 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 18 Mar 2022 17:40:36 +0100 Subject: Fix link to calendar user docs in groupware settings Closes #31617 Signed-off-by: Thomas Citharel Signed-off-by: nextcloud-command --- apps/dav/src/views/CalDavSettings.spec.js | 5 +++++ apps/dav/src/views/CalDavSettings.vue | 5 ++++- apps/dav/src/views/__snapshots__/CalDavSettings.spec.js.snap | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) (limited to 'apps/dav/src') diff --git a/apps/dav/src/views/CalDavSettings.spec.js b/apps/dav/src/views/CalDavSettings.spec.js index 0dc4c44537a..951a2802182 100644 --- a/apps/dav/src/views/CalDavSettings.spec.js +++ b/apps/dav/src/views/CalDavSettings.spec.js @@ -13,6 +13,11 @@ jest.mock('@nextcloud/router', () => { }, } }) +jest.mock('@nextcloud/initial-state', () => { + return { + loadState: jest.fn(() => 'https://docs.nextcloud.com/server/23/go.php?to=user-sync-calendars'), + } +}) describe('CalDavSettings', () => { const originalOC = global.OC diff --git a/apps/dav/src/views/CalDavSettings.vue b/apps/dav/src/views/CalDavSettings.vue index 06c5e9cf8fc..10af947bd3d 100644 --- a/apps/dav/src/views/CalDavSettings.vue +++ b/apps/dav/src/views/CalDavSettings.vue @@ -73,6 +73,9 @@