fixed paths

This commit is contained in:
Jon Lambson 2017-10-27 15:01:13 -06:00
parent 1fda0db360
commit cd578bd85f
1 changed files with 4 additions and 23 deletions

View File

@ -235,7 +235,6 @@ app.controller('websiteCtrl', [
opts.progress.uploadTotal = 0;
vm.buildNotification(result, msg);
vm.cleanArrays();
debugger;
var path = vm.breadcrumbsPath.join('/');
cleanPathQuery(path);
vm.Sites.contents(vm.copyR, vm.cleanedPath);
@ -383,21 +382,6 @@ app.controller('websiteCtrl', [
});
};
vm.Sites.contents = function (r) {
debugger;
var pkg = Auth.oauth3.pkg('www@daplie.com');
return pkg.contents({
hostname: r.domain
, domain: r.domain
, tld: r.tld
, sld: r.sld
//, sub: r.sub
, path: r.newPath
}).then(function (result) {
debugger;
});
};
var cleanPathQuery = function (path) {
vm.cleanedPath = path.replace(/\/+/g, '/');
return vm.cleanedPath;
@ -424,6 +408,7 @@ app.controller('websiteCtrl', [
// sub: r.sub,
path: dir
}).then(function (result) {
vm.cleanArrays();
vm.displaySpinner = 'hidden';
vm.folderStructure = result;
result.data.forEach(function(data){
@ -489,7 +474,6 @@ app.controller('websiteCtrl', [
var opts = {
path: path
};
debugger;
vm.Sites.remove(r, opts);
};
@ -724,12 +708,9 @@ app.controller('websiteCtrl', [
vm.breadcrumbs.push(crumb);
}
});
console.log('vm.breadcrumbs ->', vm.breadcrumbs.join('/'));
console.log('vm.breadcrumbsPath ->', vm.breadcrumbsPath.join('/'));
console.log('vm.previousSearchQuery ->', vm.previousSearchQuery);
if (vm.copyR.shareAccess.path === '/') {
vm.breadcrumbs.push('root');
vm.breadcrumbsPath.push('');
if (vm.copyR.shareAccess.path !== '/') {
} else {
vm.breadcrumbs.unshift('root');
}
};