fixing some weird click throughs

This commit is contained in:
Jon Lambson 2017-10-06 17:08:42 -06:00
parent 94d4bb7b8c
commit e40340362e
2 changed files with 11 additions and 3 deletions

View File

@ -547,6 +547,10 @@ app.controller('websiteCtrl', [
vm.deleteFilesFrom(r, folder);
};
vm.doSomething = function (r) {
window.alert("Fix me");
};
vm.Shares = {};
vm.Shares.invite = function (r) {
vm.domainName = r.domain;
@ -555,7 +559,7 @@ app.controller('websiteCtrl', [
} else {
r.shareMode = vm.copiedShareMode;
}
r.sharePath = vm.autoPopulateWebPath;
r.sharePath = vm.breadcrumbsPath.join('');
var pkg = Auth.oauth3.pkg('www@daplie.com');
return pkg.invite({
comment: r.shareEmail
@ -576,6 +580,11 @@ app.controller('websiteCtrl', [
msg = result.data.error.message;
} else {
msg = 'shared with ' + person;
vm.showInviteContainer = false;
vm.showSharesContainer = true;
r.shareEmail = '';
$scope.selectedAccess = [];
vm.currentFolder = undefined;
}
vm.buildNotification(result, msg);
// window.alert(JSON.stringify(result.data));

View File

@ -183,7 +183,7 @@
</div>
<div class="col-md-3">
<div class="square-service-block">
<a ng-click="vm.deleteFilesFrom(r)" class="cp">
<a ng-click="vm.doSomething(r)" class="cp">
<div class="ssb-icon"><i class="fa fa-trash" aria-hidden="true"></i></div>
<h2 class="ssb-title">Delete</h2>
</a>
@ -218,7 +218,6 @@
<div class="text-center {{ vm.displaySpinner }}">
<i class="fa fa-spinner fa-spin fa-5x"></i>
</div>
<span class="text-muted" ng-if="r.sharedWith.length === 1">Currently not shared with anyone...</span>
<ul class="shares-container" ng-repeat="share in r.sharedWith" ng-if="!share.me">
<li>
<div class="media">