From 057de030683f059249326a6477435befaa780bcf Mon Sep 17 00:00:00 2001 From: Jon Lambson Date: Tue, 7 Nov 2017 15:04:02 -0700 Subject: [PATCH] fixing breadcrumbsPath for fileContents --- js/controllers/website-controller.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/js/controllers/website-controller.js b/js/controllers/website-controller.js index 6dbf9d6..e7a5cee 100644 --- a/js/controllers/website-controller.js +++ b/js/controllers/website-controller.js @@ -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';