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 {
|
.error-notice .success strong {
|
||||||
color: #3c763d;
|
color: #3c763d;
|
||||||
}
|
}
|
||||||
|
.avoid-clicks {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
|
@ -576,7 +576,6 @@ app.controller('websiteCtrl', [
|
||||||
r.sharedWith = arr;
|
r.sharedWith = arr;
|
||||||
var msg;
|
var msg;
|
||||||
var person = result.data.comment;
|
var person = result.data.comment;
|
||||||
debugger;
|
|
||||||
if (result.data.error) {
|
if (result.data.error) {
|
||||||
msg = result.data.error.message;
|
msg = result.data.error.message;
|
||||||
} else {
|
} else {
|
||||||
|
@ -610,6 +609,9 @@ app.controller('websiteCtrl', [
|
||||||
//, sub: r.sub
|
//, sub: r.sub
|
||||||
, path: r.sharePath
|
, path: r.sharePath
|
||||||
}).then(function (result) {
|
}).then(function (result) {
|
||||||
|
if (result.data.length === 0) {
|
||||||
|
vm.notSharedMessage = "Currently not shared...";
|
||||||
|
}
|
||||||
vm.displaySpinner = 'hidden';
|
vm.displaySpinner = 'hidden';
|
||||||
console.log('list shares result:');
|
console.log('list shares result:');
|
||||||
console.log(result);
|
console.log(result);
|
||||||
|
|
|
@ -114,7 +114,7 @@
|
||||||
<ul class="cards">
|
<ul class="cards">
|
||||||
<li class="cards__item" ng-repeat="r in vm.sites">
|
<li class="cards__item" ng-repeat="r in vm.sites">
|
||||||
<div class="card">
|
<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>
|
<iframe src="{{ r.urlSafeDomain }}" width="350" height="350"></iframe>
|
||||||
</div>
|
</div>
|
||||||
<div class="card__content">
|
<div class="card__content">
|
||||||
|
@ -218,6 +218,7 @@
|
||||||
<div class="text-center {{ vm.displaySpinner }}">
|
<div class="text-center {{ vm.displaySpinner }}">
|
||||||
<i class="fa fa-spinner fa-spin fa-5x"></i>
|
<i class="fa fa-spinner fa-spin fa-5x"></i>
|
||||||
</div>
|
</div>
|
||||||
|
<h3 class="text-muted text-center">{{ vm.notSharedMessage }}</h3>
|
||||||
<ul class="shares-container" ng-repeat="share in r.sharedWith" ng-if="!share.me">
|
<ul class="shares-container" ng-repeat="share in r.sharedWith" ng-if="!share.me">
|
||||||
<li>
|
<li>
|
||||||
<div class="media">
|
<div class="media">
|
||||||
|
|
Loading…
Reference in New Issue