Merge pull request #2243 from dpalou/MOBILE-3239

MOBILE-3239 block: Don't fetch data in invalidate for site plugin blocks
main
Juan Leyva 2020-01-22 16:58:52 +01:00 committed by GitHub
commit ab898ef1bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -63,9 +63,11 @@ export class CoreSitePluginsBlockComponent extends CoreBlockBaseComponent implem
} }
/** /**
* Pass on content invalidation by refreshing content in the plugin content component. * Invalidate block data.
*
* @return Promise resolved when done.
*/ */
protected invalidateContent(): Promise<any> { protected invalidateContent(): Promise<any> {
return Promise.resolve(this.content.refreshContent()); return this.sitePluginsProvider.invalidateContent(this.component, this.method, this.args);
} }
} }