diff --git a/js/controllers/website-controller.js b/js/controllers/website-controller.js index aac96cb..16f4aad 100644 --- a/js/controllers/website-controller.js +++ b/js/controllers/website-controller.js @@ -320,6 +320,9 @@ app.controller('websiteCtrl', [ }; vm.Sites.setUpload = function (r) { console.log("Hey! At least it can tell if there's a change!"); + if (r.newFile === undefined) { + r.newFile = vm.newFile; + } analyzeFile(r.newFile, r); vm.showCompleteFileUploadBtn = true; console.log(r); @@ -352,7 +355,6 @@ app.controller('websiteCtrl', [ vm.Sites.remove = function (r, opts) { var pkg = Auth.oauth3.pkg('www@daplie.com'); - debugger; return pkg.remove({ hostname: r.domain @@ -645,6 +647,7 @@ app.controller('websiteCtrl', [ $scope.$watch('vm.selectedDomain', function (domainSelected) { if (domainSelected !== undefined) { + vm.dom = domainSelected.description; vm.selectDomain(vm.selectedDomain.description); } }); @@ -666,6 +669,9 @@ app.controller('websiteCtrl', [ vm.websiteTiles = true; vm.showBackBtn = true; vm.displayFileTree = true; + if (vm.autoPopulateWebPath === undefined) { + vm.autoPopulateWebPath = '/'; + } break; case 'shares': vm.showSharesContainer = true; diff --git a/templates/website.html b/templates/website.html index 6e2b735..30c83e3 100644 --- a/templates/website.html +++ b/templates/website.html @@ -55,7 +55,7 @@
- +
-

TODO:// FIX THIS UGLY

-
+

Name

+
+
- + +
diff --git a/templates/widgets/filetree.html b/templates/widgets/filetree.html index a271873..7031f08 100644 --- a/templates/widgets/filetree.html +++ b/templates/widgets/filetree.html @@ -11,12 +11,12 @@
  • - +
  • - {{ file }}
    + {{ file }}
@@ -49,7 +49,7 @@