remove site functionality done

This commit is contained in:
Jon Lambson 2017-10-18 14:58:03 -06:00
parent 3409ddccec
commit 232bc70764
2 changed files with 13 additions and 3 deletions

View File

@ -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');

View File

@ -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>