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