fixing breadcrumbsPath for fileContents
This commit is contained in:
parent
3bcc504ab2
commit
057de03068
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue