From 7ce1d1b8503abc4efffa5e6d07ab16b3014492b0 Mon Sep 17 00:00:00 2001 From: Jon Lambson Date: Tue, 3 Oct 2017 21:17:36 -0600 Subject: [PATCH 1/2] stuff --- js/controllers/website-controller.js | 3 +++ templates/website.html | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/js/controllers/website-controller.js b/js/controllers/website-controller.js index aac96cb..c581c92 100644 --- a/js/controllers/website-controller.js +++ b/js/controllers/website-controller.js @@ -666,6 +666,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..b0c44b1 100644 --- a/templates/website.html +++ b/templates/website.html @@ -190,13 +190,15 @@
-

TODO:// FIX THIS UGLY

-
+

Name

+
+
- + +
From 5cc01ded5905a13a8ecfa6b05baa09a42aa713b6 Mon Sep 17 00:00:00 2001 From: Jon Lambson Date: Wed, 4 Oct 2017 13:35:28 -0600 Subject: [PATCH 2/2] doesnt work --- js/controllers/website-controller.js | 5 ++++- templates/website.html | 2 +- templates/widgets/filetree.html | 8 ++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/js/controllers/website-controller.js b/js/controllers/website-controller.js index c581c92..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); } }); diff --git a/templates/website.html b/templates/website.html index b0c44b1..30c83e3 100644 --- a/templates/website.html +++ b/templates/website.html @@ -55,7 +55,7 @@
- +
@@ -49,7 +49,7 @@
  • - +