fixing breadcrumbsPath for fileContents

This commit is contained in:
Jon Lambson 2017-11-07 15:04:02 -07:00
parent 3bcc504ab2
commit 057de03068
1 changed files with 8 additions and 8 deletions

View File

@ -406,7 +406,7 @@ app.controller('websiteCtrl', [
, domain: r.domain
, tld: r.tld
, sld: r.sld
//, sub: r.sub
, sub: r.sub
, path: r.shareAccess.path
}).then(function (result) {
vm.cleanArrays();
@ -435,15 +435,15 @@ app.controller('websiteCtrl', [
};
vm.Sites.fileContents = function (file, r) {
vm.breadcrumbsPath.push(file);
cleanPathQuery(vm.breadcrumbsPath.join('/'))
var path = vm.breadcrumbsPath.join('/') + file;
cleanPathQuery(path);
var pkg = Auth.oauth3.pkg('www@daplie.com');
return pkg.contentRange({
hostname: r.domain,
domain: r.domain,
tld: r.tld,
sld: r.sld,
// sub: r.sub,
sub: r.sub,
path: vm.cleanedPath
}).then(function (result) {
debugger;
@ -465,7 +465,7 @@ app.controller('websiteCtrl', [
domain: r.domain,
tld: r.tld,
sld: r.sld,
// sub: r.sub,
sub: r.sub,
path: dir
}).then(function (result) {
vm.cleanArrays();
@ -579,7 +579,7 @@ app.controller('websiteCtrl', [
, domain: r.domain
, tld: r.tld
, sld: r.sld
//, sub: vm.record.sub
, sub: r.sub
, path: opts.path || r.path
, confirm: opts.confirm || r.confirm
}).then(function (result) {
@ -660,7 +660,7 @@ app.controller('websiteCtrl', [
, domain: r.domain
, tld: r.tld
, sld: r.sld
//, sub: r.sub
, sub: r.sub
, path: opts.sharePath || r.sharePath
, mode: opts.shareMode || r.shareMode
}).then(function (result) {
@ -706,7 +706,7 @@ app.controller('websiteCtrl', [
, hostname: r.domain
, tld: r.tld
, sld: r.sld
//, sub: r.sub
, sub: r.sub
, path: r.sharePath
}).then(function (result) {
vm.displaySpinner = 'hidden';