forked from EVOgeek/Vmeda.Online
		
	MOBILE-3833 storage: Show download buttons on downloadable modules
This commit is contained in:
		
							parent
							
								
									2ac0a02fee
								
							
						
					
					
						commit
						8f0c0bcfbb
					
				| @ -299,11 +299,17 @@ export class CoreCourseModuleDelegateService extends CoreDelegate<CoreCourseModu | |||||||
|         sectionId?: number, |         sectionId?: number, | ||||||
|         forCoursePage?: boolean, |         forCoursePage?: boolean, | ||||||
|     ): Promise<CoreCourseModuleHandlerData | undefined> { |     ): Promise<CoreCourseModuleHandlerData | undefined> { | ||||||
|         return await this.executeFunctionOnEnabled<CoreCourseModuleHandlerData>( |         const data = await this.executeFunctionOnEnabled<CoreCourseModuleHandlerData>( | ||||||
|             modname, |             modname, | ||||||
|             'getData', |             'getData', | ||||||
|             [module, courseId, sectionId, forCoursePage], |             [module, courseId, sectionId, forCoursePage], | ||||||
|         ); |         ); | ||||||
|  | 
 | ||||||
|  |         if (data) { | ||||||
|  |             data.showDownloadButton = data.showDownloadButton ?? true; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         return data; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /** |     /** | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user