MOBILE-2795 site: Add site version body on login
This commit is contained in:
parent
42947cb3c1
commit
1002ebf2bd
@ -140,7 +140,18 @@ export class MoodleMobileApp implements OnInit {
|
||||
}
|
||||
};
|
||||
|
||||
this.eventsProvider.on(CoreEventsProvider.LOGIN, () => {
|
||||
this.eventsProvider.on(CoreEventsProvider.LOGIN, (data) => {
|
||||
if (data.siteId) {
|
||||
this.sitesProvider.getSite(data.siteId).then((site) => {
|
||||
const info = site.getInfo();
|
||||
if (info) {
|
||||
// Add version classes to body.
|
||||
this.removeVersionClass();
|
||||
this.addVersionClass(this.sitesProvider.getReleaseNumber(info.release || ''));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
loadCustomStrings();
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user