Просмотр исходного кода

Use a hard-coded variable to stop rendering the switch away survey component

GitOrigin-RevId: f3dc9db2c8f24aff941c6ea811e5a8f13e1f2960
M Fahru 3 лет назад
Родитель
Сommit
efd2669cc7
1 измененных файлов с 6 добавлено и 3 удалено
  1. 6 3
      services/web/app/views/project/editor/editor.pug

+ 6 - 3
services/web/app/views/project/editor/editor.pug

@@ -1,3 +1,7 @@
+//- We will be restarting the survey later after some time
+//- Until then, the component will not be rendered
+- var showCM6SwitchAwaySurvey = false
+
 div.full-size(
 	ng-show="ui.view == 'editor' || ui.view === 'file'"
 	layout="pdf"
@@ -12,9 +16,8 @@ div.full-size(
 	custom-toggler-msg-when-open=hasFeature('custom-togglers') ? translate("tooltip_hide_pdf") : false
 	custom-toggler-msg-when-closed=hasFeature('custom-togglers') ? translate("tooltip_show_pdf") : false
 )
-	//- We will be restarting the survey later after some time
-	//- Will leave the survey component commented until then
-	//- cm6-switch-away-survey()
+	if (showCM6SwitchAwaySurvey)
+		cm6-switch-away-survey()
 
 	include ./editor-pane