From baa0d8c337271acbbb91380a9a6b063b8a30a95d Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Thu, 4 Nov 2021 14:18:27 +0100 Subject: [PATCH] disable wikibooks in studies until serverside CSP is here - REVERT ME --- ui/analyse/src/study/commentForm.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/analyse/src/study/commentForm.ts b/ui/analyse/src/study/commentForm.ts index 40323cda9a..6bd6eb8412 100644 --- a/ui/analyse/src/study/commentForm.ts +++ b/ui/analyse/src/study/commentForm.ts @@ -107,7 +107,7 @@ export function view(root: AnalyseCtrl): VNode { return h( 'div.study__comments', { - hook: onInsert(() => root.enableWiki(true)), + // hook: onInsert(() => root.enableWiki(true)), }, [ currentComments(root, !study.members.canContribute()), @@ -126,7 +126,7 @@ export function view(root: AnalyseCtrl): VNode { }, }), ]), - h('div.analyse__wiki.study__wiki'), + h('div.analyse__wiki.study__wiki.empty'), ] ); }