fixed paths
This commit is contained in:
		
							parent
							
								
									1fda0db360
								
							
						
					
					
						commit
						cd578bd85f
					
				@ -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');
 | 
			
		||||
    }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user