File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ export async function unsubscribeFromCourseGoal(token) {
449
449
. then ( res => camelCaseObject ( res ) ) ;
450
450
}
451
451
452
- export async function getCoursewareSearchEnabledFlag ( courseId ) {
452
+ export async function getCoursewareSearchEnabled ( courseId ) {
453
453
const url = new URL ( `${ getConfig ( ) . LMS_BASE_URL } /courses/${ courseId } /courseware-search/enabled/` ) ;
454
454
const { data } = await getAuthenticatedHttpClient ( ) . get ( url . href ) ;
455
455
return { enabled : data . enabled || false } ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
12
12
postDismissWelcomeMessage ,
13
13
postRequestCert ,
14
14
getLiveTabIframe ,
15
- getCoursewareSearchEnabledFlag ,
15
+ getCoursewareSearchEnabled ,
16
16
searchCourseContentFromAPI ,
17
17
} from './api' ;
18
18
@@ -159,7 +159,7 @@ export function processEvent(eventData, getTabData) {
159
159
160
160
export async function fetchCoursewareSearchSettings ( courseId ) {
161
161
try {
162
- const { enabled } = await getCoursewareSearchEnabledFlag ( courseId ) ;
162
+ const { enabled } = await getCoursewareSearchEnabled ( courseId ) ;
163
163
return { enabled } ;
164
164
} catch ( e ) {
165
165
return { enabled : false } ;
You can’t perform that action at this time.
0 commit comments