diff --git a/js/controllers.js b/js/controllers.js index 724015180..2ef0bd4d1 100644 --- a/js/controllers.js +++ b/js/controllers.js @@ -3,9 +3,18 @@ function MastheadController($scope) { $scope.template = 'partials/masthead.html'; } -function DashboardController($scope, Container) { +function DashboardController($scope, Container, Settings) { $scope.predicate = '-Created'; $scope.containers = []; + var opts = {animation:false}; + if (Settings.firstLoad) { + opts.animation = true; + Settings.firstLoad = false; + $('#masthead').show(); + setTimeout(function() { + $('#masthead').slideUp('slow'); + }, 5000); + } Container.query({all: 1}, function(d) { var running = 0 @@ -44,7 +53,7 @@ function DashboardController($scope, Container) { } // ghost ]; - c.Doughnut(data, {}); + c.Doughnut(data, opts); var lgd = $('#chart-legend').get(0); legend(lgd, data); }); diff --git a/js/services.js b/js/services.js index 18fcae21a..9a6a00268 100644 --- a/js/services.js +++ b/js/services.js @@ -64,7 +64,8 @@ angular.module('dockerui.services', ['ngResource']) version: DOCKER_API_VERSION, rawUrl: DOCKER_ENDPOINT + DOCKER_PORT + '/' + DOCKER_API_VERSION, uiVersion: UI_VERSION, - url: url + url: url, + firstLoad: true, }; }) .factory('ViewSpinner', function() { diff --git a/partials/dashboard.html b/partials/dashboard.html index b06dfd224..18ae5a509 100644 --- a/partials/dashboard.html +++ b/partials/dashboard.html @@ -3,7 +3,7 @@ -