fixed no shares

This commit is contained in:
Jon Lambson 2017-10-10 14:18:37 -06:00
parent b8554c741f
commit 0ea815a91d
3 changed files with 8 additions and 2 deletions

View File

@ -751,3 +751,6 @@ multiselect .dropdown-menu > li > a {
.error-notice .success strong {
color: #3c763d;
}
.avoid-clicks {
pointer-events: none;
}

View File

@ -576,7 +576,6 @@ app.controller('websiteCtrl', [
r.sharedWith = arr;
var msg;
var person = result.data.comment;
debugger;
if (result.data.error) {
msg = result.data.error.message;
} else {
@ -610,6 +609,9 @@ app.controller('websiteCtrl', [
//, sub: r.sub
, path: r.sharePath
}).then(function (result) {
if (result.data.length === 0) {
vm.notSharedMessage = "Currently not shared...";
}
vm.displaySpinner = 'hidden';
console.log('list shares result:');
console.log(result);

View File

@ -114,7 +114,7 @@
<ul class="cards">
<li class="cards__item" ng-repeat="r in vm.sites">
<div class="card">
<div class="card__image card__image--fence">
<div class="card__image card__image--fence avoid-clicks">
<iframe src="{{ r.urlSafeDomain }}" width="350" height="350"></iframe>
</div>
<div class="card__content">
@ -218,6 +218,7 @@
<div class="text-center {{ vm.displaySpinner }}">
<i class="fa fa-spinner fa-spin fa-5x"></i>
</div>
<h3 class="text-muted text-center">{{ vm.notSharedMessage }}</h3>
<ul class="shares-container" ng-repeat="share in r.sharedWith" ng-if="!share.me">
<li>
<div class="media">