fixing breadcrumbsPath for fileContents
This commit is contained in:
parent
3bcc504ab2
commit
057de03068
|
@ -406,7 +406,7 @@ app.controller('websiteCtrl', [
|
||||||
, domain: r.domain
|
, domain: r.domain
|
||||||
, tld: r.tld
|
, tld: r.tld
|
||||||
, sld: r.sld
|
, sld: r.sld
|
||||||
//, sub: r.sub
|
, sub: r.sub
|
||||||
, path: r.shareAccess.path
|
, path: r.shareAccess.path
|
||||||
}).then(function (result) {
|
}).then(function (result) {
|
||||||
vm.cleanArrays();
|
vm.cleanArrays();
|
||||||
|
@ -435,15 +435,15 @@ app.controller('websiteCtrl', [
|
||||||
};
|
};
|
||||||
|
|
||||||
vm.Sites.fileContents = function (file, r) {
|
vm.Sites.fileContents = function (file, r) {
|
||||||
vm.breadcrumbsPath.push(file);
|
var path = vm.breadcrumbsPath.join('/') + file;
|
||||||
cleanPathQuery(vm.breadcrumbsPath.join('/'))
|
cleanPathQuery(path);
|
||||||
var pkg = Auth.oauth3.pkg('www@daplie.com');
|
var pkg = Auth.oauth3.pkg('www@daplie.com');
|
||||||
return pkg.contentRange({
|
return pkg.contentRange({
|
||||||
hostname: r.domain,
|
hostname: r.domain,
|
||||||
domain: r.domain,
|
domain: r.domain,
|
||||||
tld: r.tld,
|
tld: r.tld,
|
||||||
sld: r.sld,
|
sld: r.sld,
|
||||||
// sub: r.sub,
|
sub: r.sub,
|
||||||
path: vm.cleanedPath
|
path: vm.cleanedPath
|
||||||
}).then(function (result) {
|
}).then(function (result) {
|
||||||
debugger;
|
debugger;
|
||||||
|
@ -465,7 +465,7 @@ app.controller('websiteCtrl', [
|
||||||
domain: r.domain,
|
domain: r.domain,
|
||||||
tld: r.tld,
|
tld: r.tld,
|
||||||
sld: r.sld,
|
sld: r.sld,
|
||||||
// sub: r.sub,
|
sub: r.sub,
|
||||||
path: dir
|
path: dir
|
||||||
}).then(function (result) {
|
}).then(function (result) {
|
||||||
vm.cleanArrays();
|
vm.cleanArrays();
|
||||||
|
@ -579,7 +579,7 @@ app.controller('websiteCtrl', [
|
||||||
, domain: r.domain
|
, domain: r.domain
|
||||||
, tld: r.tld
|
, tld: r.tld
|
||||||
, sld: r.sld
|
, sld: r.sld
|
||||||
//, sub: vm.record.sub
|
, sub: r.sub
|
||||||
, path: opts.path || r.path
|
, path: opts.path || r.path
|
||||||
, confirm: opts.confirm || r.confirm
|
, confirm: opts.confirm || r.confirm
|
||||||
}).then(function (result) {
|
}).then(function (result) {
|
||||||
|
@ -660,7 +660,7 @@ app.controller('websiteCtrl', [
|
||||||
, domain: r.domain
|
, domain: r.domain
|
||||||
, tld: r.tld
|
, tld: r.tld
|
||||||
, sld: r.sld
|
, sld: r.sld
|
||||||
//, sub: r.sub
|
, sub: r.sub
|
||||||
, path: opts.sharePath || r.sharePath
|
, path: opts.sharePath || r.sharePath
|
||||||
, mode: opts.shareMode || r.shareMode
|
, mode: opts.shareMode || r.shareMode
|
||||||
}).then(function (result) {
|
}).then(function (result) {
|
||||||
|
@ -706,7 +706,7 @@ app.controller('websiteCtrl', [
|
||||||
, hostname: r.domain
|
, hostname: r.domain
|
||||||
, tld: r.tld
|
, tld: r.tld
|
||||||
, sld: r.sld
|
, sld: r.sld
|
||||||
//, sub: r.sub
|
, sub: r.sub
|
||||||
, path: r.sharePath
|
, path: r.sharePath
|
||||||
}).then(function (result) {
|
}).then(function (result) {
|
||||||
vm.displaySpinner = 'hidden';
|
vm.displaySpinner = 'hidden';
|
||||||
|
|
Loading…
Reference in New Issue