mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-26 15:55:31 +02:00
Don't open modal box if it doesn't have a big photo.
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
tr
|
tr
|
||||||
td(translate) Place
|
td(translate) Place
|
||||||
td {{device.provider.name}}
|
td {{device.provider.name}}
|
||||||
tr
|
tr(ng-show='device.name && device.image')
|
||||||
td
|
td
|
||||||
td
|
td
|
||||||
button(ng-click='openDevicePhoto(device)').btn.btn-xs.btn-primary-outline
|
button(ng-click='openDevicePhoto(device)').btn.btn-xs.btn-primary-outline
|
||||||
@@ -61,6 +61,9 @@
|
|||||||
.widget-content.padded-small
|
.widget-content.padded-small
|
||||||
table.table.table-condensed.table-hover.table-infocard
|
table.table.table-condensed.table-hover.table-infocard
|
||||||
tbody
|
tbody
|
||||||
|
tr
|
||||||
|
td(translate) Size
|
||||||
|
td {{device.display.inches}}''
|
||||||
tr
|
tr
|
||||||
td(translate) Density
|
td(translate) Density
|
||||||
td {{device.display.density | displayDensity}}
|
td {{device.display.density | displayDensity}}
|
||||||
|
|||||||
@@ -68,9 +68,11 @@ module.exports = function DeviceListDetailsDirective(
|
|||||||
var id = e.target.parentNode.parentNode.parentNode.id
|
var id = e.target.parentNode.parentNode.parentNode.id
|
||||||
var device = mapping[id]
|
var device = mapping[id]
|
||||||
|
|
||||||
var title = device.name
|
if (device.name && device.image) {
|
||||||
var enhancedPhoto800 = '/static/app/devices/photo/x800/' + device.image
|
var title = device.name
|
||||||
LightboxImageService.open(title, enhancedPhoto800)
|
var enhancedPhoto800 = '/static/app/devices/photo/x800/' + device.image
|
||||||
|
LightboxImageService.open(title, enhancedPhoto800)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user