In fact we do need this so that the footer gets the correct value even if opening a new tab while already logged in

This commit is contained in:
Alexandre Aubin 2019-02-05 00:24:17 +00:00
parent 7480d4f7bb
commit f0a4428f56

View file

@ -149,6 +149,13 @@
// Store url
sam.store.set('url', window.location.hostname + '/yunohost/api');
if (sam.store.get('connected')) {
this.api('/diagnosis', function(diagnosis) {
versions = diagnosis.packages;
$('#yunohost-version').html(y18n.t('footer_version', [versions.yunohost.version, versions.yunohost.repo]));
});
}
// Flash messages
var flashMessage = $('#flashMessage');
$('#toggle-btn', flashMessage).click(function(e) {