mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Don't load labels for anonymous/read-only users
This commit is contained in:
parent
954c53aec6
commit
3b066758bb
2 changed files with 4 additions and 3 deletions
|
@ -37,9 +37,9 @@ div.full-size(
|
||||||
keybindings="settings.mode",
|
keybindings="settings.mode",
|
||||||
font-size="settings.fontSize",
|
font-size="settings.fontSize",
|
||||||
auto-complete="settings.autoComplete",
|
auto-complete="settings.autoComplete",
|
||||||
enable-auto-complete-features="true",
|
enable-auto-complete-features="!anonymous"
|
||||||
spell-check="!anonymous",
|
spell-check="!anonymous",
|
||||||
spell-check-language="project.spellCheckLanguage",
|
spell-check-language="project.spellCheckLanguage"
|
||||||
highlights="onlineUserCursorHighlights[editor.open_doc_id]"
|
highlights="onlineUserCursorHighlights[editor.open_doc_id]"
|
||||||
show-print-margin="false",
|
show-print-margin="false",
|
||||||
sharejs-doc="editor.sharejs_doc",
|
sharejs-doc="editor.sharejs_doc",
|
||||||
|
|
|
@ -44,6 +44,7 @@ define [
|
||||||
keybindings: "="
|
keybindings: "="
|
||||||
fontSize: "="
|
fontSize: "="
|
||||||
autoComplete: "="
|
autoComplete: "="
|
||||||
|
enableAutoCompleteFeatures: "="
|
||||||
sharejsDoc: "="
|
sharejsDoc: "="
|
||||||
spellCheck: "="
|
spellCheck: "="
|
||||||
spellCheckLanguage: "="
|
spellCheckLanguage: "="
|
||||||
|
@ -94,7 +95,7 @@ define [
|
||||||
highlightsManager = new HighlightsManager(scope, editor, element)
|
highlightsManager = new HighlightsManager(scope, editor, element)
|
||||||
cursorPositionManager = new CursorPositionManager(scope, editor, element, localStorage)
|
cursorPositionManager = new CursorPositionManager(scope, editor, element, localStorage)
|
||||||
trackChangesManager = new TrackChangesManager(scope, editor, element)
|
trackChangesManager = new TrackChangesManager(scope, editor, element)
|
||||||
if attrs.enableAutoCompleteFeatures
|
if scope.enableAutoCompleteFeatures
|
||||||
labelsManager = new LabelsManager(scope, editor, element, labels)
|
labelsManager = new LabelsManager(scope, editor, element, labels)
|
||||||
autoCompleteManager = new AutoCompleteManager(scope, editor, element, labelsManager)
|
autoCompleteManager = new AutoCompleteManager(scope, editor, element, labelsManager)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue