diff --git a/src/addon/mod/data/providers/sync.ts b/src/addon/mod/data/providers/sync.ts index dbc3792dd..72995f623 100644 --- a/src/addon/mod/data/providers/sync.ts +++ b/src/addon/mod/data/providers/sync.ts @@ -208,7 +208,7 @@ export class AddonModDataSyncProvider extends CoreSyncBaseProvider { }).then(() => { if (result.updated) { // Data has been sent to server. Now invalidate the WS calls. - return this.dataProvider.invalidateContent(data.cmid, courseId, siteId).catch(() => { + return this.dataProvider.invalidateContent(data.coursemodule, courseId, siteId).catch(() => { // Ignore errors. }); } diff --git a/src/core/login/login.scss b/src/core/login/login.scss index 8206b3750..a91ae89c3 100644 --- a/src/core/login/login.scss +++ b/src/core/login/login.scss @@ -2,16 +2,16 @@ $core-login-page-background-color: $white !default; $core-login-page-text-color: $text-color !default; $core-login-button-outline: false !default; $core-login-loading-color: false !default; -$core-login-item-inner-background-color: $white !default; -$core-login-item-background-color: $white !default; +$core-login-input-item-background-color: $core-login-page-background-color !default; +$core-login-input-item-text-color: $core-login-page-text-color !default; // Dark. $core-dark-login-page-background-color: $black !default; $core-dark-login-page-text-color: $core-dark-text-color !default; -$core-dark-login-item-inner-background-color: $core-dark-login-page-background-color !default; -$core-dark-login-item-background-color: $core-dark-login-page-background-color !default; $core-dark-login-button-outline: $core-login-button-outline !default; $core-dark-login-loading-color: $core-dark-text-color !default; +$core-dark-input-login-item-background-color: $core-dark-login-page-background-color !default; +$core-dark-input-login-item-text-color: $core-dark-login-page-text-color !default; ion-app.app-root page-core-login-credentials, ion-app.app-root page-core-login-reconnect, @@ -26,6 +26,13 @@ ion-app.app-root page-core-login-site { } } + .item p, .item h2, .item h3, .list .item.core-oauth-icon .label, .text-input { + color: $core-login-page-text-color; + @include darkmode() { + color: $core-dark-login-page-text-color; + } + } + img { max-width: 100%; } @@ -78,6 +85,22 @@ ion-app.app-root page-core-login-site { margin-bottom: 20px; } + + .core-login-form .item, + .core-login-form .item-inner { + background-color: $core-login-input-item-background-color; + @include darkmode() { + background-color: $core-dark-input-login-item-background-color; + } + + p, input { + color: $core-login-input-item-text-color; + @include darkmode() { + color: $core-dark-input-login-item-text-color; + } + } + } + ion-list.core-login-forgotten-password { margin-top: 0; margin-bottom: 0; @@ -89,6 +112,8 @@ ion-app.app-root page-core-login-site { @include darkmode() { background: transparent; } + + color: $core-login-page-text-color; } } diff --git a/src/core/login/pages/credentials/credentials.html b/src/core/login/pages/credentials/credentials.html index 690b3d93b..1d501a496 100644 --- a/src/core/login/pages/credentials/credentials.html +++ b/src/core/login/pages/credentials/credentials.html @@ -47,7 +47,7 @@ - + {{ 'core.login.forgotten' | translate }} diff --git a/src/core/login/pages/reconnect/reconnect.html b/src/core/login/pages/reconnect/reconnect.html index afd1a75da..ae910ff77 100644 --- a/src/core/login/pages/reconnect/reconnect.html +++ b/src/core/login/pages/reconnect/reconnect.html @@ -47,7 +47,7 @@ -