diff --git a/js/controllers/website-controller.js b/js/controllers/website-controller.js index ee31b86..3147fb5 100644 --- a/js/controllers/website-controller.js +++ b/js/controllers/website-controller.js @@ -303,18 +303,11 @@ app.controller('websiteCtrl', [ Auth.api('domains.list', {}).then(function (els) { console.log('domains.list els', els); vm.domains = els; + $scope.domain = vm.domains; }); 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) { var matches = []; domain.forEach(function(domain) { diff --git a/templates/website.html b/templates/website.html index 8358702..2cc3b1e 100644 --- a/templates/website.html +++ b/templates/website.html @@ -84,6 +84,7 @@ +