Skip to content

Commit

Permalink
fix(topic page): rename admin tab key to admin
Browse files Browse the repository at this point in the history
  • Loading branch information
yonadavGit committed Jun 10, 2024
1 parent 1525d3f commit 5cfab65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion static/js/TopicPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ const useTabDisplayData = (translationLanguagePreference) => {
renderWrapper: refRenderWrapper,
},
{
key: 'admin-tab',
key: 'admin',
fetcher: fetchBulkText.bind(null, translationLanguagePreference),
sortOptions: ['Relevance', 'Chronological'],
filterFunc: refFilter,
Expand Down
4 changes: 2 additions & 2 deletions static/js/sefaria/sefaria.js
Original file line number Diff line number Diff line change
Expand Up @@ -2677,8 +2677,8 @@ _media: {},
tabs["sources"].refs = allRefs;
};
if (Sefaria.is_moderator){
tabs["admin-tab"] = {...tabs["sources"]};
tabs["admin-tab"].title = {en: 'Admin', he: "עורכים"};
tabs["admin"] = {...tabs["sources"]};
tabs["admin"].title = {en: 'Admin', he: "עורכים"};
}


Expand Down

0 comments on commit 5cfab65

Please sign in to comment.