compact / angular-bootstrap-lightbox

An AngularJS lightbox built using UI Bootstrap Modal.
http://compact.github.io/angular-bootstrap-lightbox/
MIT License
306 stars 134 forks source link

Only display nav if there is more than one image #34

Closed Ryuno-Ki closed 8 years ago

Ryuno-Ki commented 8 years ago

To use your module as replacement for jQuery prettyPhoto (which is GPL v2-licensed) I needed to make some adjustments.

To me, the lightbox nav is only required, if I load more than one image into the modal (which I don't). So I added data-ng-if="Lightbox.images.length > 1" to the .btn-group of .lightbox-nav.

Maybe you want to adjust your template as well ;-)

Wesseldr commented 8 years ago

+1

compact commented 8 years ago

Fixed, sorry for the delay.