diff --git a/src/addons/mod/data/components/index/index.ts b/src/addons/mod/data/components/index/index.ts index deeec564c..d7cb09504 100644 --- a/src/addons/mod/data/components/index/index.ts +++ b/src/addons/mod/data/components/index/index.ts @@ -90,7 +90,7 @@ export class AddonModDataIndexComponent extends CoreCourseModuleMainActivityComp entriesRendered = ''; extraImports: Type[] = [AddonModDataComponentsCompileModule]; - jsData? : { + jsData?: { fields: Record; entries: Record; database: AddonModDataData; @@ -100,7 +100,7 @@ export class AddonModDataIndexComponent extends CoreCourseModuleMainActivityComp }; // Data for found records translation. - foundRecordsTranslationData? : { + foundRecordsTranslationData?: { num: number; max: number; reseturl: string; diff --git a/src/addons/mod/data/components/search/search.ts b/src/addons/mod/data/components/search/search.ts index 74e7bab66..c50832bb9 100644 --- a/src/addons/mod/data/components/search/search.ts +++ b/src/addons/mod/data/components/search/search.ts @@ -52,7 +52,7 @@ export class AddonModDataSearchComponent implements OnInit { extraImports: Type[] = [AddonModDataComponentsCompileModule]; searchForm: FormGroup; - jsData? : { + jsData?: { fields: Record; form: FormGroup; search: CoreFormFields; diff --git a/src/addons/mod/data/pages/edit/edit.ts b/src/addons/mod/data/pages/edit/edit.ts index e3becd365..1fff5f530 100644 --- a/src/addons/mod/data/pages/edit/edit.ts +++ b/src/addons/mod/data/pages/edit/edit.ts @@ -77,7 +77,7 @@ export class AddonModDataEditPage implements OnInit { editFormRender = ''; editForm: FormGroup; extraImports: Type[] = [AddonModDataComponentsCompileModule]; - jsData? : { + jsData?: { fields: Record; database?: AddonModDataData; contents: AddonModDataEntryFields; diff --git a/src/addons/mod/data/pages/entry/entry.ts b/src/addons/mod/data/pages/entry/entry.ts index 7e3f89c8f..3d1884a02 100644 --- a/src/addons/mod/data/pages/entry/entry.ts +++ b/src/addons/mod/data/pages/entry/entry.ts @@ -78,7 +78,7 @@ export class AddonModDataEntryPage implements OnInit, OnDestroy { entryHtml = ''; siteId: string; extraImports: Type[] = [AddonModDataComponentsCompileModule]; - jsData? : { + jsData?: { fields: Record; entries: Record; database: AddonModDataData; diff --git a/src/addons/mod/url/components/index/addon-mod-url-index.html b/src/addons/mod/url/components/index/addon-mod-url-index.html index fb8339bf3..6ded3f48f 100644 --- a/src/addons/mod/url/components/index/addon-mod-url-index.html +++ b/src/addons/mod/url/components/index/addon-mod-url-index.html @@ -26,11 +26,11 @@ - - diff --git a/src/core/classes/site.ts b/src/core/classes/site.ts index 82d64c17f..64effc43c 100644 --- a/src/core/classes/site.ts +++ b/src/core/classes/site.ts @@ -659,7 +659,9 @@ export class CoreSite { preSets.omitExpires = true; preSets.getFromCache = true; - return this.getFromCache(method, data, preSets, true).catch(() => Promise.reject(new CoreWSError(error))); + return this.getFromCache(method, data, preSets, true).catch(() => { + throw new CoreWSError(error); + }); }); // eslint-disable-next-line @typescript-eslint/no-explicit-any }).then((response: any) => { diff --git a/src/core/components/progress-bar/core-progress-bar.html b/src/core/components/progress-bar/core-progress-bar.html index 6edeb841e..7583839a4 100644 --- a/src/core/components/progress-bar/core-progress-bar.html +++ b/src/core/components/progress-bar/core-progress-bar.html @@ -1,5 +1,5 @@ - +
{{ 'core.percentagenumber' | translate: {$a: text} }}
diff --git a/src/core/features/grades/pages/grade/grade.html b/src/core/features/grades/pages/grade/grade.html index 16ec6ce0e..a5431de85 100644 --- a/src/core/features/grades/pages/grade/grade.html +++ b/src/core/features/grades/pages/grade/grade.html @@ -18,7 +18,7 @@ capture="true"> + [alt]="grade.iconAlt">

diff --git a/src/core/features/login/pages/site/site.html b/src/core/features/login/pages/site/site.html index b2a769259..dd52720d9 100644 --- a/src/core/features/login/pages/site/site.html +++ b/src/core/features/login/pages/site/site.html @@ -121,8 +121,8 @@ - - + +

{{site.title}}

diff --git a/src/core/features/search/components/search-box/core-search-box.html b/src/core/features/search/components/search-box/core-search-box.html index f9c217aa2..8cc8753b9 100644 --- a/src/core/features/search/components/search-box/core-search-box.html +++ b/src/core/features/search/components/search-box/core-search-box.html @@ -18,7 +18,7 @@
+ (click)="historyClicked($event, item.searchedtext)" tabindex="0" detail="true"> {{item.searchedtext}}