fixed no shares
This commit is contained in:
parent
b8554c741f
commit
0ea815a91d
|
@ -751,3 +751,6 @@ multiselect .dropdown-menu > li > a {
|
|||
.error-notice .success strong {
|
||||
color: #3c763d;
|
||||
}
|
||||
.avoid-clicks {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue