Merge pull request #1640 from crazyserver/MOBILE-2767
MOBILE-2767 login: Fix sitepolicynotagreederror translationmain
commit
838ddd8253
|
@ -658,7 +658,7 @@ export class CoreSite {
|
||||||
} else if (error.errorcode === 'sitepolicynotagreed') {
|
} else if (error.errorcode === 'sitepolicynotagreed') {
|
||||||
// Site policy not agreed, trigger event.
|
// Site policy not agreed, trigger event.
|
||||||
this.eventsProvider.trigger(CoreEventsProvider.SITE_POLICY_NOT_AGREED, {}, this.id);
|
this.eventsProvider.trigger(CoreEventsProvider.SITE_POLICY_NOT_AGREED, {}, this.id);
|
||||||
error.message = this.translate.instant('core.sitepolicynotagreederror');
|
error.message = this.translate.instant('core.login.sitepolicynotagreederror');
|
||||||
|
|
||||||
return Promise.reject(error);
|
return Promise.reject(error);
|
||||||
} else if (error.errorcode === 'dmlwriteexception' && this.textUtils.hasUnicodeData(data)) {
|
} else if (error.errorcode === 'dmlwriteexception' && this.textUtils.hasUnicodeData(data)) {
|
||||||
|
|
Loading…
Reference in New Issue