From b5a8337e607621a26d57cdf36667e1916cc7a5f3 Mon Sep 17 00:00:00 2001 From: Jon Lambson Date: Tue, 3 Oct 2017 16:28:20 -0600 Subject: [PATCH] files done --- js/controllers/website-controller.js | 11 +++++++++++ templates/website.html | 4 ++-- templates/widgets/filetree.html | 10 +++++----- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/js/controllers/website-controller.js b/js/controllers/website-controller.js index 1153897..aac96cb 100644 --- a/js/controllers/website-controller.js +++ b/js/controllers/website-controller.js @@ -472,6 +472,7 @@ app.controller('websiteCtrl', [ } vm.showUploadButton = true; + vm.showFolderAction = true; vm.createNewFolder = function (r) { if (vm.savedPath === undefined) { vm.savedPath = '/'; @@ -496,9 +497,17 @@ app.controller('websiteCtrl', [ vm.directoryPath = path; vm.getSiteContents(path, site); vm.showUploadButton = false; + vm.showFolderAction = false; }; vm.getDirectoriesFromBreadcrumbs = function (dir) { + if (dir === 'root') { + vm.showFolderAction = true; + vm.showUploadButton = true; + } else { + vm.showFolderAction = false; + vm.showUploadButton = false; + } vm.breadcrumbPathClicked = true; vm.siteDirectories = []; vm.siteFiles = []; @@ -656,6 +665,7 @@ app.controller('websiteCtrl', [ vm.showInviteContainer = true; vm.websiteTiles = true; vm.showBackBtn = true; + vm.displayFileTree = true; break; case 'shares': vm.showSharesContainer = true; @@ -676,6 +686,7 @@ app.controller('websiteCtrl', [ vm.showInviteContainer = false; vm.showSharesContainer = false; vm.showFilesContainer = false; + vm.displayFileTree = false; vm.websiteTiles = false; vm.showBackBtn = false; }, 150); diff --git a/templates/website.html b/templates/website.html index 4bd9000..6e2b735 100644 --- a/templates/website.html +++ b/templates/website.html @@ -230,8 +230,8 @@ diff --git a/templates/widgets/filetree.html b/templates/widgets/filetree.html index 7171aa9..a271873 100644 --- a/templates/widgets/filetree.html +++ b/templates/widgets/filetree.html @@ -1,7 +1,7 @@ -
+
@@ -23,11 +23,11 @@
- +