cleanin gpu

This commit is contained in:
Jon Lambson 2017-08-21 16:06:38 -06:00
parent 4474e23042
commit 7c2cdd7042
4 changed files with 4 additions and 20 deletions

View File

@ -11,10 +11,12 @@ app.config(['$stateProvider', '$urlRouterProvider', 'localStorageServiceProvider
data: { requiresLogin: false }, data: { requiresLogin: false },
url: '/splash-page', url: '/splash-page',
templateUrl: '/templates/splash-page.html', templateUrl: '/templates/splash-page.html',
controller: 'loginCtrl as vm'
}) })
.state('app',{ .state('app',{
data: { requiresLogin: true }, data: { requiresLogin: true },
url: '/', url: '/',
controller: 'loginCtrl as vm',
views: { views: {
'header': { 'header': {
templateUrl: '/templates/partials/header.html', templateUrl: '/templates/partials/header.html',

View File

@ -3,8 +3,4 @@ app.controller('boltCtrl', [
function($scope, Auth) { function($scope, Auth) {
var vm = this; var vm = this;
vm.userName = function(profile){
profile = Auth.getProfile();
return profile.email;
};
}]); }]);

View File

@ -123,14 +123,9 @@ app.controller('loginCtrl', [
vm.setIssuer(vm.defaultIssuer); vm.setIssuer(vm.defaultIssuer);
vm.getSession = function() { vm.getSession = function() {
console.log('asdf');
return Auth.select(Auth.session); return Auth.select(Auth.session);
}; };
$scope.$watch('vm.session', function (newValue, oldValue) {
vm.session = newValue;
});
vm.initListLoggedInProfiles = function () { vm.initListLoggedInProfiles = function () {
vm.activeProfiles = Auth.getActiveSessions(); vm.activeProfiles = Auth.getActiveSessions();
}; };
@ -157,5 +152,4 @@ app.controller('loginCtrl', [
}); });
}; };
}]); }]);

View File

@ -1,13 +1,7 @@
<div notification-directive></div>
<div achievement-directive></div>
<div upload-directive></div>
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-body"> <div class="panel-body">
<div class="media"> <div class="media">
<h5 class="media-heading">System Message > Jane Smith {{ vm.session }}</h5> <h5 class="media-heading">System Message > <span ng-bind="vm.session.subject"></span></h5>
<hr> <hr>
<div class="media-left"> <div class="media-left">
<div class="image-thing"><i class="fa fa-bullhorn fa-3x" aria-hidden="true"></i></div> <div class="image-thing"><i class="fa fa-bullhorn fa-3x" aria-hidden="true"></i></div>
@ -39,5 +33,3 @@
</div> </div>
</div> </div>
</div> </div>
<div todo-directive></div>