fixing mulitple loading controllers

This commit is contained in:
Jon Lambson 2017-10-24 14:58:46 -06:00
parent 43fa9e69f8
commit a000c8e6ae
4 changed files with 1 additions and 21 deletions

View File

@ -593,7 +593,7 @@ a:hover, a:focus {
background-color: #e74c3c; background-color: #e74c3c;
border-radius: 5px; border-radius: 5px;
display: block; display: block;
padding: 30px 20px; padding: 60px 20px;
text-align: center; text-align: center;
width: 100%; width: 100%;
} }

View File

@ -112,15 +112,6 @@ app.config(['$stateProvider', '$urlRouterProvider', 'localStorageServiceProvider
} }
} }
}) })
.state('app.websites', {
url: 'websites',
views: {
'content@': {
templateUrl: 'templates/websites.html',
controller: 'websiteCtrl as vm',
}
}
})
.state('app.dns', { .state('app.dns', {
url: 'dns', url: 'dns',
views: { views: {

View File

@ -55,7 +55,6 @@ app.directive('fileTree', [function () {
return { return {
restrict: 'EA', restrict: 'EA',
templateUrl: '/templates/widgets/filetree.html', templateUrl: '/templates/widgets/filetree.html',
controller: 'websiteCtrl as vm'
}; };
}]); }]);
@ -63,7 +62,6 @@ app.directive('notificationBar', [function () {
return { return {
restrict: 'EA', restrict: 'EA',
templateUrl: '/templates/widgets/website-notification-bar.html', templateUrl: '/templates/widgets/website-notification-bar.html',
controller: 'websiteCtrl as vm'
}; };
}]); }]);
@ -88,9 +86,6 @@ app.controller('websiteCtrl', [
return r.verifiedAt || r.mode; return r.verifiedAt || r.mode;
} }
// vm.selectedShow = websitesService.find($stateParams.id);
// vm.shows = websitesService.list();
Auth.api = function (apiname, opts) { Auth.api = function (apiname, opts) {
var els = []; var els = [];
@ -714,11 +709,6 @@ app.controller('websiteCtrl', [
}); });
}; };
vm.websiteSelected = function (x) {
vm.selectedShow = x;
debugger;
};
//vm.getDomains(); //vm.getDomains();
Auth.api('domains.list', {}).then(function (els) { Auth.api('domains.list', {}).then(function (els) {
// console.log('[init] domains.list els:'); // console.log('[init] domains.list els:');
@ -726,7 +716,6 @@ app.controller('websiteCtrl', [
vm.domains = els; vm.domains = els;
$scope.domain = vm.domains; $scope.domain = vm.domains;
}); });
console.log('asdfasdfa')
vm.listSites(); vm.listSites();
vm.triggerDropdown = function() { vm.triggerDropdown = function() {