From fe97d32342321b703b661a4a27901a488ade4edd Mon Sep 17 00:00:00 2001 From: Alfonso Salces Date: Thu, 23 Feb 2023 11:45:23 +0100 Subject: [PATCH] MOBILE-4245 Config: update sites type --- moodle.config.json | 1 - src/core/services/sites.ts | 10 ++++++++++ src/types/config.d.ts | 1 - 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/moodle.config.json b/moodle.config.json index e4cddbd91..b61f913ea 100644 --- a/moodle.config.json +++ b/moodle.config.json @@ -86,7 +86,6 @@ }, "customurlscheme": "moodlemobile", "sites": [], - "stagingsites": [], "multisitesdisplay": "", "sitefindersettings": {}, "onlyallowlistedsites": false, diff --git a/src/core/services/sites.ts b/src/core/services/sites.ts index a8aaf216a..816c2eb81 100644 --- a/src/core/services/sites.ts +++ b/src/core/services/sites.ts @@ -2105,6 +2105,16 @@ export type CoreLoginSiteInfo = { * Countrycode of the site. */ countrycode?: string; + + /** + * Is staging site. + */ + staging?: boolean; + + /** + * Class to apply to site item. + */ + className?: string; }; /** diff --git a/src/types/config.d.ts b/src/types/config.d.ts index a54c42d47..331ab4712 100644 --- a/src/types/config.d.ts +++ b/src/types/config.d.ts @@ -43,7 +43,6 @@ export interface EnvironmentConfig { defaultZoomLevel?: CoreZoomLevel; // Set the default zoom level of the app. customurlscheme: string; sites: CoreLoginSiteInfo[]; - stagingsites: CoreLoginSiteInfo[]; multisitesdisplay: CoreLoginSiteSelectorListMethod; sitefindersettings: Partial; onlyallowlistedsites: boolean;