files done
This commit is contained in:
parent
208c9db28f
commit
b5a8337e60
|
@ -472,6 +472,7 @@ app.controller('websiteCtrl', [
|
||||||
}
|
}
|
||||||
|
|
||||||
vm.showUploadButton = true;
|
vm.showUploadButton = true;
|
||||||
|
vm.showFolderAction = true;
|
||||||
vm.createNewFolder = function (r) {
|
vm.createNewFolder = function (r) {
|
||||||
if (vm.savedPath === undefined) {
|
if (vm.savedPath === undefined) {
|
||||||
vm.savedPath = '/';
|
vm.savedPath = '/';
|
||||||
|
@ -496,9 +497,17 @@ app.controller('websiteCtrl', [
|
||||||
vm.directoryPath = path;
|
vm.directoryPath = path;
|
||||||
vm.getSiteContents(path, site);
|
vm.getSiteContents(path, site);
|
||||||
vm.showUploadButton = false;
|
vm.showUploadButton = false;
|
||||||
|
vm.showFolderAction = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
vm.getDirectoriesFromBreadcrumbs = function (dir) {
|
vm.getDirectoriesFromBreadcrumbs = function (dir) {
|
||||||
|
if (dir === 'root') {
|
||||||
|
vm.showFolderAction = true;
|
||||||
|
vm.showUploadButton = true;
|
||||||
|
} else {
|
||||||
|
vm.showFolderAction = false;
|
||||||
|
vm.showUploadButton = false;
|
||||||
|
}
|
||||||
vm.breadcrumbPathClicked = true;
|
vm.breadcrumbPathClicked = true;
|
||||||
vm.siteDirectories = [];
|
vm.siteDirectories = [];
|
||||||
vm.siteFiles = [];
|
vm.siteFiles = [];
|
||||||
|
@ -656,6 +665,7 @@ app.controller('websiteCtrl', [
|
||||||
vm.showInviteContainer = true;
|
vm.showInviteContainer = true;
|
||||||
vm.websiteTiles = true;
|
vm.websiteTiles = true;
|
||||||
vm.showBackBtn = true;
|
vm.showBackBtn = true;
|
||||||
|
vm.displayFileTree = true;
|
||||||
break;
|
break;
|
||||||
case 'shares':
|
case 'shares':
|
||||||
vm.showSharesContainer = true;
|
vm.showSharesContainer = true;
|
||||||
|
@ -676,6 +686,7 @@ app.controller('websiteCtrl', [
|
||||||
vm.showInviteContainer = false;
|
vm.showInviteContainer = false;
|
||||||
vm.showSharesContainer = false;
|
vm.showSharesContainer = false;
|
||||||
vm.showFilesContainer = false;
|
vm.showFilesContainer = false;
|
||||||
|
vm.displayFileTree = false;
|
||||||
vm.websiteTiles = false;
|
vm.websiteTiles = false;
|
||||||
vm.showBackBtn = false;
|
vm.showBackBtn = false;
|
||||||
}, 150);
|
}, 150);
|
||||||
|
|
|
@ -230,8 +230,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer ">
|
<div class="modal-footer ">
|
||||||
<button type="button" class="btn btn-primary pull-left" ng-show="vm.showBackBtn" ng-click="vm.closeAllOpenActions()">Back</button>
|
<button type="button" class="btn btn-primary pull-left" ng-show="vm.showBackBtn" ng-click="vm.closeAllOpenActions();">Back</button>
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal" ng-click="vm.closeAllOpenActions()">Close</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal" ng-click="vm.closeAllOpenActions();">Close</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<div class="text-left">
|
<div class="text-left" ng-hide="vm.displayFileTree">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
<li ng-repeat="breadcrumb in vm.breadcrumbs track by $index" ng-click="vm.getDirectoriesFromBreadcrumbs(breadcrumb); vm.showUploadContainer = false; vm.showUploadFolderContainer = false; vm.showUploadFilesContainer = false; vm.showUploadButton = true;" data="{{ breadcrumb }}" class="cp breadcrumbs-list">
|
<li ng-repeat="breadcrumb in vm.breadcrumbs track by $index" ng-click="vm.getDirectoriesFromBreadcrumbs(breadcrumb); vm.showUploadContainer = false; vm.showUploadFolderContainer = false; vm.showUploadFilesContainer = false;" data="{{ breadcrumb }}" class="cp breadcrumbs-list">
|
||||||
{{ breadcrumb | capitalize }}
|
{{ breadcrumb | capitalize }}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -23,11 +23,11 @@
|
||||||
<hr>
|
<hr>
|
||||||
<div class="">
|
<div class="">
|
||||||
<button type="button" name="button" class="btn btn-block btn-primary" ng-click="vm.showUploadFilesContainer = true; vm.autoPopulateFolderName(); vm.showUploadFolderContainer = false" ng-show="vm.showUploadButton">Upload files</button>
|
<button type="button" name="button" class="btn btn-block btn-primary" ng-click="vm.showUploadFilesContainer = true; vm.autoPopulateFolderName(); vm.showUploadFolderContainer = false" ng-show="vm.showUploadButton">Upload files</button>
|
||||||
<button type="button" name="button" class="btn btn-block btn-primary">Share folder</button>
|
<button type="button" name="button" class="btn btn-block btn-primary" ng-click="vm.showAction('invite');">Share folder</button>
|
||||||
<ul class="ls-none folder-actions-list">
|
<ul class="ls-none folder-actions-list">
|
||||||
<li class="{{ vm.currentFolder }}" ng-hide="vm.showUploadButton"><span><i class="fa fa-upload cp"></i> <a ng-click="vm.showUploadFilesContainer = true; vm.autoPopulateFolderName(); vm.showUploadFolderContainer = false;" class="cp">Upload files</a></span></li>
|
<li class="" ng-hide="vm.showFolderAction"><span><i class="fa fa-upload cp"></i> <a ng-click="vm.showUploadFilesContainer = true; vm.autoPopulateFolderName(); vm.showUploadFolderContainer = false;" class="cp">Upload files</a></span></li>
|
||||||
<li class=""><span><i class="fa fa-folder cp"></i> <a ng-click="vm.showUploadFolderContainer = true; vm.cleanPath(); vm.showUploadFilesContainer = false;" class="cp">New folder</a></span></li>
|
<li class=""><span><i class="fa fa-folder cp"></i> <a ng-click="vm.showUploadFolderContainer = true; vm.cleanPath(); vm.showUploadFilesContainer = false;" class="cp">New folder</a></span></li>
|
||||||
<li class="{{ vm.currentFolder }}"><span><i class="fa fa-trash cp"></i> <a ng-click="vm.triggerDeleteFolder(vm.currentFolder, r)" data="{{ vm.currentFolder }}" data="{{ r }}" class="cp">Delete {{ vm.currentFolder | capitalize }} Folder</a></span></li>
|
<li ng-hide="vm.showUploadButton"><span><i class="fa fa-trash cp"></i> <a ng-click="vm.triggerDeleteFolder(vm.currentFolder, r)" data="{{ vm.currentFolder }}" data="{{ r }}" class="cp">Delete {{ vm.currentFolder | capitalize }} Folder</a></span></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue