Skip to content

Commit

Permalink
Merge pull request #2135 from nextcloud/artonge/fix/exif_display_cond…
Browse files Browse the repository at this point in the history
…itions

Fix EXIF display conditions
  • Loading branch information
artonge authored Nov 16, 2023
2 parents b9b84c6 + 2a898ca commit c350bda
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-sidebar.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-sidebar.js.map

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions src/views/PhotosTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ export default {
// The zoom level of the map in the new openstreetmap tab upon
// Opening the link
linkZoom: 18,

attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
}
},
Expand Down Expand Up @@ -138,7 +137,7 @@ export default {
* @return {number}
*/
focal() {
if (!this.exif) {
if (!this.exif?.FNumber) {
return 0
}

Expand All @@ -149,7 +148,7 @@ export default {
* @return {number}
*/
focalLength() {
if (!this.exif) {
if (!this.exif?.FocalLength) {
return 0
}

Expand All @@ -166,7 +165,7 @@ export default {
* @return {string}
*/
normalizedExposureTime() {
if (!this.exif) {
if (!this.exif?.ExposureTime) {
return 0
}

Expand Down

0 comments on commit c350bda

Please sign in to comment.