fixed list, need to test

This commit is contained in:
Jon Lambson 2017-08-23 17:56:18 -06:00
parent 7012c253a3
commit f59cdd96a0
2 changed files with 2 additions and 8 deletions

View File

@ -303,18 +303,11 @@ app.controller('websiteCtrl', [
Auth.api('domains.list', {}).then(function (els) { Auth.api('domains.list', {}).then(function (els) {
console.log('domains.list els', els); console.log('domains.list els', els);
vm.domains = els; vm.domains = els;
$scope.domain = vm.domains;
}); });
vm.listSites(); vm.listSites();
$scope.domain = [
{ amount: "0", createdAt: "1498687134570", domain: "asdf.daplie.me", id: "1a38260bac84e0c4f8c1edf3600d98ba", session: "mmIoFLxbobxdhfSV8HWhokUGMRy-i5TIUZ_9c5ywGhYSuRi1KHh_aVSgBixxyHPW@oauth3.org", sld: "asdf", tld: "daplie.me", updatedAt: "1498687134570" },
{ amount: "0", createdAt: "1499722035396", domain: "two.daplie.me", id: "2ea60504fa2a917a5b3736c53a564fa4", session: "mmIoFLxbobxdhfSV8HWhokUGMRy-i5TIUZ_9c5ywGhYSuRi1KHh_aVSgBixxyHPW@oauth3.org", sld: "two", tld: "daplie.me", updatedAt: "1499722035396" },
{ amount: "0", createdAt: "1502725301216", domain: "jon.lambson.daplie.me", id: "23117a47d1ef60a360b46a703afc1c67", session: "mmIoFLxbobxdhfSV8HWhokUGMRy-i5TIUZ_9c5ywGhYSuRi1KHh_aVSgBixxyHPW@oauth3.org", sld: "jon.lambson", tld: "daplie.me", updatedAt: "1502725301216" },
{ amount: "0", createdAt: "1502990579539", domain: "joncloud.daplie.me", id: "ec7e4d8643537d7602fffd61b36e1676", session: "mmIoFLxbobxdhfSV8HWhokUGMRy-i5TIUZ_9c5ywGhYSuRi1KHh_aVSgBixxyHPW@oauth3.org", sld: "joncloud", tld: "daplie.me", updatedAt: "1502990579539" }
];
$scope.localDomainSearch = function(str, domain) { $scope.localDomainSearch = function(str, domain) {
var matches = []; var matches = [];
domain.forEach(function(domain) { domain.forEach(function(domain) {

View File

@ -84,6 +84,7 @@
</div> </div>
<div angucomplete-alt <div angucomplete-alt
placeholder="Select a domain" placeholder="Select a domain"
pause="300" pause="300"