mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
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:
parent
7480d4f7bb
commit
f0a4428f56
1 changed files with 7 additions and 0 deletions
|
@ -149,6 +149,13 @@
|
||||||
// Store url
|
// Store url
|
||||||
sam.store.set('url', window.location.hostname + '/yunohost/api');
|
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
|
// Flash messages
|
||||||
var flashMessage = $('#flashMessage');
|
var flashMessage = $('#flashMessage');
|
||||||
$('#toggle-btn', flashMessage).click(function(e) {
|
$('#toggle-btn', flashMessage).click(function(e) {
|
||||||
|
|
Loading…
Reference in a new issue