1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-06 03:50:04 +02:00

Cleanup code for stf components.

This commit is contained in:
Gunther Brunner 2015-08-31 15:58:32 +09:00
parent 7ddd464ac3
commit bd493b210b
29 changed files with 3 additions and 189 deletions

View file

@ -18,7 +18,7 @@ module.exports = function ServiceFactory($modal) {
var modalInstance = $modal.open({
template: require('./lightbox-image.jade'),
controller: ModalInstanceCtrl,
windowClass: 'modal-size-xl', // TODO: Make width dynamic adjusting
windowClass: 'modal-size-xl',
resolve: {
title: function() {
return title

View file

@ -7,4 +7,3 @@
.modal-body
img(ng-if='imageUrl', ng-src='{{imageUrl}}')
nothing-to-show(message='{{"No photo available"|translate}}', icon='fa-picture-o', ng-if='!imageUrl')
// TODO: replace !imageUrl here with a image-not-available='imageIsNotPresent = true' directive