From 8a1f499d05b58831f453bcb03cdf24318e5f91a5 Mon Sep 17 00:00:00 2001 From: lobsam Date: Fri, 6 Sep 2024 16:46:57 +0530 Subject: [PATCH] fixed model error in sheet.js --- static/js/Header.jsx | 2 +- static/js/NavSidebar.jsx | 4 ++-- static/js/s1/editor.js | 2 +- static/js/sefaria/localizationLanguage/chinese.json | 1 + static/js/sefaria/localizationLanguage/english.json | 1 + static/js/sefaria/localizationLanguage/tibetan.json | 1 + static/js/sheets.js | 4 +--- 7 files changed, 8 insertions(+), 7 deletions(-) diff --git a/static/js/Header.jsx b/static/js/Header.jsx index 425dee1c3e..31c120a5f5 100644 --- a/static/js/Header.jsx +++ b/static/js/Header.jsx @@ -631,7 +631,7 @@ const ProfilePicMenu = ({len, url, name}) => {
{name}
- Profile + header.profileMenu.profile
header.profileMenu.create_New_Sheet diff --git a/static/js/NavSidebar.jsx b/static/js/NavSidebar.jsx index 9ab08dfb44..bd04a85641 100644 --- a/static/js/NavSidebar.jsx +++ b/static/js/NavSidebar.jsx @@ -515,7 +515,7 @@ const JoinTheConversation = ({wide}) => { return ( - {/*
+
side_nav.join_conversation topic.combine_source
@@ -524,7 +524,7 @@ const JoinTheConversation = ({wide}) => { make a sheet icon side_nav.make_sheet
-
*/} +
); }; diff --git a/static/js/s1/editor.js b/static/js/s1/editor.js index 1baf6d6f93..ae0d907f3d 100644 --- a/static/js/s1/editor.js +++ b/static/js/s1/editor.js @@ -3482,7 +3482,7 @@ sjs.showNewText = function () { $(".modal, #overlay").hide(); $(".open, .verseControls").remove(); $("#viewButtons, #prev, #next, #breadcrumbs").hide(); - $("#editButtons").show(); + $("#editButton").show(); $("body").addClass("newText"); sjs._$commentaryBox.hide(); sjs._$basetext.hide(); diff --git a/static/js/sefaria/localizationLanguage/chinese.json b/static/js/sefaria/localizationLanguage/chinese.json index 6eae095895..488d0d3ea3 100644 --- a/static/js/sefaria/localizationLanguage/chinese.json +++ b/static/js/sefaria/localizationLanguage/chinese.json @@ -297,6 +297,7 @@ "side_nav.download_text.text_without_tag": "无标签的文本", "side_nav.download_text.merged_version": "合并版本", "side_nav.join_conversation": "加入对话", + "side_nav.join_conversation.button.make_sheet": "", "side_nav.join_conversation.descriptions": "通过笔记或评论与其他法友分享见解。", "side_nav.explore_community": "探索社区", "side_nav.who_to_follow": "关注谁", diff --git a/static/js/sefaria/localizationLanguage/english.json b/static/js/sefaria/localizationLanguage/english.json index 50b5e2968a..537569e911 100644 --- a/static/js/sefaria/localizationLanguage/english.json +++ b/static/js/sefaria/localizationLanguage/english.json @@ -300,6 +300,7 @@ "side_nav.download_text.text_without_tag":"Text (without Tags)", "side_nav.download_text.merged_version":"Merged Version", "side_nav.join_conversation": "Join the Conversation", + "side_nav.join_conversation.button.make_sheet": "Make a Sheet", "side_nav.join_conversation.descriptions": "Combine sources from our library with your own comments, questions, images, and videos.", "side_nav.explore_community": "Explore the Community", "side_nav.who_to_follow": "Who to Follow", diff --git a/static/js/sefaria/localizationLanguage/tibetan.json b/static/js/sefaria/localizationLanguage/tibetan.json index 1f1b6fcc2e..7b25cb8b0c 100644 --- a/static/js/sefaria/localizationLanguage/tibetan.json +++ b/static/js/sefaria/localizationLanguage/tibetan.json @@ -298,6 +298,7 @@ "side_nav.download_text.text_without_tag":"ཡིག་རྐྱང་།", "side_nav.download_text.merged_version":"དཔེ་རྒྱུན་མཉམ་བསྒྲིགས་བྱས་པ།", "side_nav.join_conversation": "ཁ་བརྡ་ནང་ཞུགས།", + "side_nav.join_conversation.button.make_sheet": "ཤོག་ངོས་ཤིག་བཟོས", "side_nav.join_conversation.descriptions": "ཡིག་མཛོད་ནང་ལ་ཡོད་པའི་ལུང་ཚིག་གཞི་ལ་བཞག་ནས། ཁྱེད་རང་ཉིད་ཀྱི་བསམ་ཚུལ་དང་དྲི་བ། འདྲ་པར། བརྙན་ལ་སོགས་པ་བསྣན་ནས་མཉམ་སྡེབ་བྱེད་ཆོག།", "side_nav.explore_community": "ཚོགས་སྡེ་དེ་སྔོགས།", "side_nav.who_to_follow": "གཤམ་གྱི་ཟིན་བྲིས་པ་ཚོར་རྒྱུན་ལྟ་གྱིས།", diff --git a/static/js/sheets.js b/static/js/sheets.js index 658d2c722b..f92ff56928 100755 --- a/static/js/sheets.js +++ b/static/js/sheets.js @@ -1,5 +1,3 @@ -import Sefaria from "./sefaria/sefaria"; - sjs.flags = { saving: false, sorting: false, @@ -1126,7 +1124,7 @@ $("#addInterface").on("click", "#connectionButton", function(e) { if ("error" in data) { $("#connectionsToAdd").text(data.error) } else if (data.commentary.length == 0) { - $("#connectionsToAdd").text(_("sheet.no_connection_found")); + $("#connectionsToAdd").text(_("No connections known for this source.")); } else { data.commentary = [].concat.apply([], data.commentary);