remove site functionality done
This commit is contained in:
		
							parent
							
								
									3409ddccec
								
							
						
					
					
						commit
						232bc70764
					
				| @ -564,8 +564,11 @@ app.controller('websiteCtrl', [ | ||||
|         debugger; | ||||
|       } | ||||
|       if (vm.breadcrumbsPath.join('/') === '') { | ||||
|         if (vm.breadcrumbsPath.length === 0) { | ||||
| debugger | ||||
|         } else { | ||||
|           r.uploadPath = '/'; | ||||
|         debugger; | ||||
|         } | ||||
|       } else { | ||||
|         r.uploadPath = vm.breadcrumbsPath.join('/') + '/'; | ||||
|         debugger; | ||||
| @ -625,6 +628,13 @@ app.controller('websiteCtrl', [ | ||||
|     }); | ||||
|   }; | ||||
| 
 | ||||
|   vm.deleteWebsite = function (r, s) { | ||||
|     if (!window.confirm("Delete this site?")) { | ||||
|       return; | ||||
|     } | ||||
|     vm.Shares.remove(r, s); | ||||
|   } | ||||
| 
 | ||||
|   vm.Shares.remove = function (r, s) { | ||||
|     console.log('Shares.remove'); | ||||
|     var pkg = Auth.oauth3.pkg('www@daplie.com'); | ||||
|  | ||||
| @ -183,7 +183,7 @@ | ||||
|               </div> | ||||
|               <div class="col-md-3"> | ||||
|                 <div class="square-service-block"> | ||||
|                   <a ng-click="vm.doSomething(r)" class="cp"> | ||||
|                   <a ng-click="vm.deleteWebsite(r, r)" class="cp"> | ||||
|                     <div class="ssb-icon"><i class="fa fa-trash" aria-hidden="true"></i></div> | ||||
|                     <h2 class="ssb-title">Delete</h2> | ||||
|                   </a> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user