Преглед изворни кода

Merge pull request #3544 from overleaf/hb-tidy-out-of-sync

Links from out of sync modal open new tab

GitOrigin-RevId: fdb3734eb7700fdf7a78719ce854999686f5b739
Jakob Ackermann пре 5 година
родитељ
комит
36cc89299b

+ 1 - 1
services/web/app/views/project/editor.pug

@@ -149,7 +149,7 @@ block content
 					| {{editorContent}}
 
 		.modal-footer
-			button.btn.btn-info(ng-click="done()") #{translate("ok")}
+			button.btn.btn-info(ng-click="done()") #{translate("reload_editor")}
 
 	script(type="text/ng-template", id="lockEditorModalTemplate")
 		.modal-header

+ 6 - 6
services/web/frontend/js/ide/editor/EditorManager.js

@@ -1,10 +1,10 @@
 import _ from 'lodash'
 /* eslint-disable
-    camelcase,
-    node/handle-callback-err,
-    max-len,
-    no-return-assign,
-*/
+   camelcase,
+   node/handle-callback-err,
+   max-len,
+   no-return-assign,
+ */
 // TODO: This file was created by bulk-decaffeinate.
 // Fix any style issues and re-enable lint.
 /*
@@ -326,7 +326,7 @@ export default EditorManager = (function() {
           this.$scope.editor.error_state = true
           this.ide.showOutOfSyncModal(
             'Out of sync',
-            "Sorry, this file has gone out of sync and we need to do a full refresh. <br> <a href='/learn/Kb/Editor_out_of_sync_problems'>Please see this help guide for more information</a>",
+            "Sorry, this file has gone out of sync and we need to do a full refresh. <br> <a target='_blank' rel='noopener noreferrer' href='/learn/Kb/Editor_out_of_sync_problems'>Please see this help guide for more information</a>",
             editorContent
           )
           // Do not forceReopen the document.

+ 1 - 0
services/web/locales/en.json

@@ -1,4 +1,5 @@
 {
+  "reload_editor": "Reload editor",
   "compile_error_description": "This project did not compile because of an error",
   "validation_issue_description": "This project did not compile because of a validation issue",
   "compile_error_entry_description": "An error which prevented this project from compiling",