mirror of https://github.com/portainer/portainer
Use localStorage to only show 'learn more' banner on first load.
parent
00528edd7c
commit
fe7646e939
|
@ -21,6 +21,7 @@ angular.module('dashboard', [])
|
||||||
if (Settings.firstLoad) {
|
if (Settings.firstLoad) {
|
||||||
opts.animation = true;
|
opts.animation = true;
|
||||||
Settings.firstLoad = false;
|
Settings.firstLoad = false;
|
||||||
|
localStorage.setItem('firstLoad', false);
|
||||||
$('#masthead').show();
|
$('#masthead').show();
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|
|
@ -145,12 +145,13 @@ angular.module('dockerui.services', ['ngResource'])
|
||||||
if (DOCKER_PORT) {
|
if (DOCKER_PORT) {
|
||||||
url = url + DOCKER_PORT + '\\' + DOCKER_PORT;
|
url = url + DOCKER_PORT + '\\' + DOCKER_PORT;
|
||||||
}
|
}
|
||||||
|
var firstLoad = (localStorage.getItem('firstLoad') || 'true') === 'true';
|
||||||
return {
|
return {
|
||||||
displayAll: false,
|
displayAll: false,
|
||||||
endpoint: DOCKER_ENDPOINT,
|
endpoint: DOCKER_ENDPOINT,
|
||||||
uiVersion: UI_VERSION,
|
uiVersion: UI_VERSION,
|
||||||
url: url,
|
url: url,
|
||||||
firstLoad: true
|
firstLoad: firstLoad
|
||||||
};
|
};
|
||||||
}])
|
}])
|
||||||
.factory('ViewSpinner', function ViewSpinnerFactory() {
|
.factory('ViewSpinner', function ViewSpinnerFactory() {
|
||||||
|
|
Loading…
Reference in New Issue