File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ export async function unsubscribeFromCourseGoal(token) {
449449 . then ( res => camelCaseObject ( res ) ) ;
450450}
451451
452- export async function getCoursewareSearchEnabledFlag ( courseId ) {
452+ export async function getCoursewareSearchEnabled ( courseId ) {
453453 const url = new URL ( `${ getConfig ( ) . LMS_BASE_URL } /courses/${ courseId } /courseware-search/enabled/` ) ;
454454 const { data } = await getAuthenticatedHttpClient ( ) . get ( url . href ) ;
455455 return { enabled : data . enabled || false } ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
1212 postDismissWelcomeMessage ,
1313 postRequestCert ,
1414 getLiveTabIframe ,
15- getCoursewareSearchEnabledFlag ,
15+ getCoursewareSearchEnabled ,
1616 searchCourseContentFromAPI ,
1717} from './api' ;
1818
@@ -159,7 +159,7 @@ export function processEvent(eventData, getTabData) {
159159
160160export async function fetchCoursewareSearchSettings ( courseId ) {
161161 try {
162- const { enabled } = await getCoursewareSearchEnabledFlag ( courseId ) ;
162+ const { enabled } = await getCoursewareSearchEnabled ( courseId ) ;
163163 return { enabled } ;
164164 } catch ( e ) {
165165 return { enabled : false } ;
You can’t perform that action at this time.
0 commit comments