Skip to content

Commit

Permalink
Propper share_type check
Browse files Browse the repository at this point in the history
  • Loading branch information
felixheidecke committed Oct 30, 2019
1 parent 7756a40 commit e9cf03e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -1879,7 +1879,7 @@
let $path = $('<span>', { class : 'shareTree-item-path', text : dirName })

// user/group shares
if (share.share_type === 0) {
if (share.share_type === OC.Share.SHARE_TYPE_USER || share.share_type === OC.Share.SHARE_TYPE_GROUP) {
let $name = $('<strong>', { class : 'shareTree-item-name', text : share.share_with_displayname })
let $avatar = $('<div>', { class : 'shareTree-item-avatar' })

Expand All @@ -1888,7 +1888,7 @@
}

// link shares
else if (share.share_type === 3) {
else if (share.share_type === OC.Share.SHARE_TYPE_LINK) {
let $name = $('<strong>', { class : 'shareTree-item-name', text : share.name })
let $icon = $('<span>', { class : 'shareTree-item-icon link-entry--icon icon-public-white' })

Expand Down

0 comments on commit e9cf03e

Please sign in to comment.